ui: add 'Label Media' button to changer drive

This commit is contained in:
Dietmar Maurer 2021-03-02 08:44:29 +01:00
parent 1d14c31658
commit d4bfdfe749
1 changed files with 17 additions and 0 deletions

View File

@ -84,6 +84,14 @@ Ext.define('PBS.TapeManagement.ChangerStatus', {
}).show(); }).show();
}, },
labelMedia: function(button, event, record) {
let me = this;
Ext.create('PBS.TapeManagement.LabelMediaWindow', {
driveid: record.data.name,
}).show();
},
erase: function(v, rI, cI, button, el, record) { erase: function(v, rI, cI, button, el, record) {
let me = this; let me = this;
let view = me.getView(); let view = me.getView();
@ -601,6 +609,15 @@ Ext.define('PBS.TapeManagement.ChangerStatus', {
}, },
data: [], data: [],
}, },
tbar: [
{
text: gettext('Label Media'),
xtype: 'proxmoxButton',
handler: 'labelMedia',
iconCls: 'fa fa-barcode',
disabled: true,
},
],
columns: [ columns: [
{ {
text: gettext('ID'), text: gettext('ID'),