ui: add 'Clean' button to changer drive (remove clean action)
This commit is contained in:
parent
2af8b8ef91
commit
bbe05d7fe9
|
@ -190,7 +190,7 @@ Ext.define('PBS.TapeManagement.ChangerStatus', {
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
cleanDrive: function(view, rI, cI, button, el, record) {
|
cleanDrive: function(button, event, record) {
|
||||||
let me = this;
|
let me = this;
|
||||||
PBS.Utils.driveCommand(record.data.name, 'clean', {
|
PBS.Utils.driveCommand(record.data.name, 'clean', {
|
||||||
waitMsgTarget: me.getView(),
|
waitMsgTarget: me.getView(),
|
||||||
|
@ -639,6 +639,13 @@ Ext.define('PBS.TapeManagement.ChangerStatus', {
|
||||||
iconCls: 'fa fa-book',
|
iconCls: 'fa fa-book',
|
||||||
disabled: true,
|
disabled: true,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
text: gettext('Clean Drive'),
|
||||||
|
xtype: 'proxmoxButton',
|
||||||
|
handler: 'cleanDrive',
|
||||||
|
iconCls: 'fa fa-shower',
|
||||||
|
disabled: true,
|
||||||
|
},
|
||||||
],
|
],
|
||||||
columns: [
|
columns: [
|
||||||
{
|
{
|
||||||
|
@ -731,12 +738,6 @@ Ext.define('PBS.TapeManagement.ChangerStatus', {
|
||||||
handler: 'status',
|
handler: 'status',
|
||||||
isDisabled: (v, r, c, i, rec) => rec.data['is-blocked'],
|
isDisabled: (v, r, c, i, rec) => rec.data['is-blocked'],
|
||||||
},
|
},
|
||||||
{
|
|
||||||
iconCls: 'fa fa-shower',
|
|
||||||
tooltip: gettext('Clean Drive'),
|
|
||||||
handler: 'cleanDrive',
|
|
||||||
isDisabled: (v, r, c, i, rec) => rec.data['is-blocked'],
|
|
||||||
},
|
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
|
Loading…
Reference in New Issue