ui: use butten for 'Label Media' (instead of action icon)

This commit is contained in:
Dietmar Maurer 2021-02-25 11:00:24 +01:00
parent 5830e5620d
commit 8730cfcc3e

View File

@ -185,7 +185,7 @@ Ext.define('PBS.TapeManagement.DrivePanel', {
});
},
labelMedia: function(view, rI, cI, button, el, record) {
labelMedia: function(button, event, record) {
let me = this;
let driveid = record.data.name;
@ -247,6 +247,14 @@ Ext.define('PBS.TapeManagement.DrivePanel', {
baseurl: '/api2/extjs/config/drive',
callback: 'reload',
},
'-',
{
text: gettext('Label Media'),
xtype: 'proxmoxButton',
handler: 'labelMedia',
iconCls: 'fa fa-barcode',
disabled: true,
},
],
columns: [
{
@ -324,11 +332,6 @@ Ext.define('PBS.TapeManagement.DrivePanel', {
handler: 'status',
tooltip: gettext('Status'),
},
{
iconCls: 'fa fa-pencil-square-o',
handler: 'labelMedia',
tooltip: gettext('Label Media'),
},
],
},
],