[PATCH proxmox-backup v7 13/34] ui: improve variable name indirectly fixing typo

Christian Ebner
2026-04-01T13:49:15Z

`lastRequestWasFailue` not only has a typo but is also not that easily
readable, use `lastRequestFailed` instead.

Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
Reviewed-by: Hannes Laimer <h.laimer@proxmox.com>
Tested-by: Hannes Laimer <h.laimer@proxmox.com>
---
www/datastore/Summary.js | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/www/datastore/Summary.js b/www/datastore/Summary.js
index d26f02348..da2653c26 100644
--- a/www/datastore/Summary.js
+++ b/www/datastore/Summary.js
@@ -400,12 +400,12 @@ Ext.define('PBS.DataStoreSummary', {
interval: 1000,
});

- let lastRequestWasFailue = false;
+ let lastRequestFailed = false;
me.mon(me.statusStore, 'load', (s, records, success) => {
let mountBtn = me.lookupReferenceHolder().lookupReference('mountButton');
let unmountBtn = me.lookupReferenceHolder().lookupReference('unmountButton');
if (!success) {
- lastRequestWasFailue = true;
+ lastRequestFailed = true;

me.statusStore.stopUpdate();
me.rrdstore.stopUpdate();
@@ -436,13 +436,13 @@ Ext.define('PBS.DataStoreSummary', {
});
} else {
// only trigger on edges, else we couple our interval to the info one
- if (lastRequestWasFailue) {
+ if (lastRequestFailed) {
me.down('pbsDataStoreInfo').fireEvent('activate');
me.rrdstore.startUpdate();
}
unmountBtn.setDisabled(false);
mountBtn.setDisabled(true);
- lastRequestWasFailue = false;
+ lastRequestFailed = false;

let backendType = s.getById('backend-type').data.value;
if (backendType === 's3') {
--
2.47.3