]> git.proxmox.com Git - proxmox-backup.git/commitdiff
ui: tape/TapeInventory.js - avoid update changer status
authorDietmar Maurer <dietmar@proxmox.com>
Thu, 18 Feb 2021 09:10:51 +0000 (10:10 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Thu, 18 Feb 2021 09:10:51 +0000 (10:10 +0100)
We do not update changer status by default - only when pressing "Reload" button.

www/tape/TapeInventory.js

index fbcb626257cb24f47a67dc91520e6c86d639fcbc..d7c0b93fc50e658275c65ffc6e3e3162f25e474e 100644 (file)
@@ -103,7 +103,15 @@ Ext.define('PBS.TapeManagement.TapeInventory', {
        },
 
        reload: function() {
-           this.getView().getStore().load();
+           this.getView().getStore().load({
+               params: { 'update-status': false }
+           });
+       },
+
+       reload_update_status: function() {
+           this.getView().getStore().load({
+               params: { 'update-status': true }
+           });
        },
     },
 
@@ -121,7 +129,7 @@ Ext.define('PBS.TapeManagement.TapeInventory', {
     tbar: [
        {
            text: gettext('Reload'),
-           handler: 'reload',
+           handler: 'reload_update_status',
        },
        '-',
        {