From 05228f17f5533ee265a5123685ac386c8c481cf5 Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Thu, 25 Feb 2021 13:04:50 +0100 Subject: [PATCH] ui: use button for tape Catalog (instead of action) --- www/tape/DriveConfig.js | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/www/tape/DriveConfig.js b/www/tape/DriveConfig.js index 6ffa2606..a8629e2b 100644 --- a/www/tape/DriveConfig.js +++ b/www/tape/DriveConfig.js @@ -47,7 +47,7 @@ Ext.define('PBS.TapeManagement.DrivePanel', { }); }, - catalog: function(view, rI, cI, button, el, record) { + catalog: function(button, event, record) { let me = this; let drive = record.data.name; PBS.Utils.driveCommand(drive, 'catalog', { @@ -179,6 +179,13 @@ Ext.define('PBS.TapeManagement.DrivePanel', { handler: 'ejectMedia', disabled: true, }, + { + text: gettext('Catalog'), + xtype: 'proxmoxButton', + handler: 'catalog', + iconCls: 'fa fa-book', + disabled: true, + }, ], columns: [ { @@ -246,11 +253,6 @@ Ext.define('PBS.TapeManagement.DrivePanel', { handler: 'readLabel', tooltip: gettext('Read Label'), }, - { - iconCls: 'fa fa-book', - handler: 'catalog', - tooltip: gettext('Catalog'), - }, { iconCls: 'fa fa-info-circle', handler: 'status',