From e459150c248a3bd58b7f457ed9ccf80e5a39389f Mon Sep 17 00:00:00 2001 From: J Blackman Date: Sun, 10 Oct 2021 09:17:06 +1100 Subject: [PATCH] Auto merged - #2622 at Sat, 09 Oct 2021 22:17:06 GMT Fixed text for the PID profile reset button. --- locales/en/messages.json | 8 ++++---- src/css/tabs/pid_tuning.css | 2 +- src/js/tabs/pid_tuning.js | 4 ++-- src/tabs/pid_tuning.html | 4 ++-- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/locales/en/messages.json b/locales/en/messages.json index 5a0f0297..441a4bc8 100644 --- a/locales/en/messages.json +++ b/locales/en/messages.json @@ -1900,11 +1900,11 @@ "dialogCopyProfileClose": { "message": "Cancel" }, - "pidTuningResetProfile": { - "message": "Reset all profile values" + "pidTuningResetPidProfile": { + "message": "Reset current PID profile settings" }, - "pidTuningProfileReset": { - "message": "Loaded default profile values." + "pidTuningPidProfileReset": { + "message": "Loaded default values for the current PID profile." }, "pidTuningReceivedProfile": { "message": "Flight controller set Profile: $1" diff --git a/src/css/tabs/pid_tuning.css b/src/css/tabs/pid_tuning.css index 6f389dd0..b9fd3b1b 100644 --- a/src/css/tabs/pid_tuning.css +++ b/src/css/tabs/pid_tuning.css @@ -481,7 +481,7 @@ } .tab-pid_tuning .resetbt { - width: 140px; + width: 200px; margin-right: 10px; } diff --git a/src/js/tabs/pid_tuning.js b/src/js/tabs/pid_tuning.js index 9fb32782..563124c4 100644 --- a/src/js/tabs/pid_tuning.js +++ b/src/js/tabs/pid_tuning.js @@ -1163,13 +1163,13 @@ TABS.pid_tuning.initialize = function (callback) { updatePidDisplay(); }); - $('#resetProfile').on('click', function(){ + $('#resetPidProfile').on('click', function(){ self.updating = true; MSP.promise(MSPCodes.MSP_SET_RESET_CURR_PID).then(function () { self.refresh(function () { self.updating = false; - GUI.log(i18n.getMessage('pidTuningProfileReset')); + GUI.log(i18n.getMessage('pidTuningPidProfileReset')); }); }); }); diff --git a/src/tabs/pid_tuning.html b/src/tabs/pid_tuning.html index 0f7ec07c..d0a40ca4 100644 --- a/src/tabs/pid_tuning.html +++ b/src/tabs/pid_tuning.html @@ -39,8 +39,8 @@
-
- +
+