From 8730cfcc3e66400037a573f3d2448cba309fcc69 Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Thu, 25 Feb 2021 11:00:24 +0100 Subject: [PATCH] ui: use butten for 'Label Media' (instead of action icon) --- www/tape/DriveConfig.js | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/www/tape/DriveConfig.js b/www/tape/DriveConfig.js index bb25f58b..0a28b089 100644 --- a/www/tape/DriveConfig.js +++ b/www/tape/DriveConfig.js @@ -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'), - }, ], }, ],