mirror of
https://github.com/dualshock-tools/dualshock-tools.github.io.git
synced 2026-03-01 11:19:54 +03:00
Fixed review comments
This commit is contained in:
@@ -1238,6 +1238,7 @@ window.openCalibrationHistoryModal = async () => {
|
||||
} catch (error) {
|
||||
console.warn('Could not retrieve current finetune data or serial number:', error);
|
||||
}
|
||||
la("calibration_history_modal_open");
|
||||
await show_calibration_history_modal(controller, currentFinetuneData, controllerSerialNumber, (success, message) => {
|
||||
if(!message) return;
|
||||
success ? infoAlert(message) : errorAlert(message);
|
||||
|
||||
@@ -109,7 +109,7 @@ export class CalibCenterModal {
|
||||
this._updateUI(6, "Stick center calibration", "Done", true);
|
||||
yield 6;
|
||||
|
||||
this._close(true);
|
||||
this._close(true, "Stick calibration completed");
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
'use strict';
|
||||
|
||||
import { FinetuneHistory } from '../finetune-history.js';
|
||||
import { formatLocalizedDate } from '../utils.js';
|
||||
import { formatLocalizedDate, la } from '../utils.js';
|
||||
import { l } from '../translations.js';
|
||||
|
||||
export class CalibrationHistoryModal {
|
||||
@@ -133,6 +133,7 @@ export class CalibrationHistoryModal {
|
||||
await this._applyCalibration(entry.data);
|
||||
this.close();
|
||||
this.doneCallback(true, l('The calibration was restored successfully! Remember to save the changes in order not to loose them when the controller is rebooted.'));
|
||||
la("calibration_history_restored");
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
<p><b class="ds-i18n pulsing-text">The controller is now sampling data!</b></p>
|
||||
<p class="ds-i18n">Rotate the sticks slowly at least 2 times in one direction and 2 times in the other direction to cover the whole range.</p>
|
||||
|
||||
<div style="display: flex; justify-content: center; gap: 0px; align-items: center;">
|
||||
<div style="display: flex; justify-content: center; gap: 0px; align-items: center; font-family: monospace; font-size: 0.85em;">
|
||||
<div style="text-align: left; min-width: 65px;">
|
||||
<div><small>LX: <span id="range-lx-lbl">0.00</span></small></div>
|
||||
<div><small>LY: <span id="range-ly-lbl">0.00</span></small></div>
|
||||
|
||||
Reference in New Issue
Block a user