From 65535670f959313a123898f461e7bbf719bf4502 Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Thu, 18 Feb 2021 10:10:51 +0100 Subject: [PATCH] ui: tape/TapeInventory.js - avoid update changer status We do not update changer status by default - only when pressing "Reload" button. --- www/tape/TapeInventory.js | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/www/tape/TapeInventory.js b/www/tape/TapeInventory.js index fbcb6262..d7c0b93f 100644 --- a/www/tape/TapeInventory.js +++ b/www/tape/TapeInventory.js @@ -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', }, '-', { -- 2.39.2