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

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 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',