Fixed review comments

This commit is contained in:
Mathias Malmqvist
2025-12-22 02:53:16 +01:00
parent 0bf5e18e0b
commit 38d147dc70
4 changed files with 5 additions and 3 deletions

View File

@@ -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);

View File

@@ -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");
}
/**

View File

@@ -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");
}
/**

View File

@@ -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>