ui: use button for tape Catalog (instead of action)

This commit is contained in:
Dietmar Maurer 2021-02-25 13:04:50 +01:00
parent e8653b96be
commit 05228f17f5
1 changed files with 8 additions and 6 deletions

View File

@ -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 me = this;
let drive = record.data.name; let drive = record.data.name;
PBS.Utils.driveCommand(drive, 'catalog', { PBS.Utils.driveCommand(drive, 'catalog', {
@ -179,6 +179,13 @@ Ext.define('PBS.TapeManagement.DrivePanel', {
handler: 'ejectMedia', handler: 'ejectMedia',
disabled: true, disabled: true,
}, },
{
text: gettext('Catalog'),
xtype: 'proxmoxButton',
handler: 'catalog',
iconCls: 'fa fa-book',
disabled: true,
},
], ],
columns: [ columns: [
{ {
@ -246,11 +253,6 @@ Ext.define('PBS.TapeManagement.DrivePanel', {
handler: 'readLabel', handler: 'readLabel',
tooltip: gettext('Read Label'), tooltip: gettext('Read Label'),
}, },
{
iconCls: 'fa fa-book',
handler: 'catalog',
tooltip: gettext('Catalog'),
},
{ {
iconCls: 'fa fa-info-circle', iconCls: 'fa fa-info-circle',
handler: 'status', handler: 'status',