From 38d147dc70eb578be05f34426df895b8c6b85842 Mon Sep 17 00:00:00 2001 From: Mathias Malmqvist Date: Mon, 22 Dec 2025 02:53:16 +0100 Subject: [PATCH] Fixed review comments --- js/core.js | 1 + js/modals/calib-center-modal.js | 2 +- js/modals/calibration-history-modal.js | 3 ++- templates/range-modal.html | 2 +- 4 files changed, 5 insertions(+), 3 deletions(-) diff --git a/js/core.js b/js/core.js index 420be1f..59bfee1 100644 --- a/js/core.js +++ b/js/core.js @@ -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); diff --git a/js/modals/calib-center-modal.js b/js/modals/calib-center-modal.js index b183eff..9e75114 100644 --- a/js/modals/calib-center-modal.js +++ b/js/modals/calib-center-modal.js @@ -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"); } /** diff --git a/js/modals/calibration-history-modal.js b/js/modals/calibration-history-modal.js index d0790c4..e1dee53 100644 --- a/js/modals/calibration-history-modal.js +++ b/js/modals/calibration-history-modal.js @@ -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"); } /** diff --git a/templates/range-modal.html b/templates/range-modal.html index 1a68667..7daef07 100644 --- a/templates/range-modal.html +++ b/templates/range-modal.html @@ -9,7 +9,7 @@

The controller is now sampling data!

Rotate the sticks slowly at least 2 times in one direction and 2 times in the other direction to cover the whole range.

-
+
LX: 0.00
LY: 0.00