ui: tape: rename erase to format
erase is a different action, so correctly call it 'format' Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
parent
4bf2ab1109
commit
a2e30cd51d
|
@ -138,7 +138,7 @@ Ext.define('PBS.TapeManagement.ChangerStatus', {
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
erase: function(v, rI, cI, button, el, record) {
|
format: function(v, rI, cI, button, el, record) {
|
||||||
let me = this;
|
let me = this;
|
||||||
let view = me.getView();
|
let view = me.getView();
|
||||||
let label = record.data['label-text'];
|
let label = record.data['label-text'];
|
||||||
|
@ -703,8 +703,8 @@ Ext.define('PBS.TapeManagement.ChangerStatus', {
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
iconCls: 'fa fa-trash-o',
|
iconCls: 'fa fa-trash-o',
|
||||||
handler: 'erase',
|
handler: 'format',
|
||||||
tooltip: gettext('Erase'),
|
tooltip: gettext('Format'),
|
||||||
isDisabled: (v, r, c, i, rec) => !rec.data['label-text'],
|
isDisabled: (v, r, c, i, rec) => !rec.data['label-text'],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
@ -215,7 +215,7 @@ Ext.define('PBS.TapeManagement.DriveStatus', {
|
||||||
handler: 'format',
|
handler: 'format',
|
||||||
iconCls: 'fa fa-trash-o',
|
iconCls: 'fa fa-trash-o',
|
||||||
dangerous: true,
|
dangerous: true,
|
||||||
confirmMsg: gettext('Are you sure you want to erase the inserted tape?'),
|
confirmMsg: gettext('Are you sure you want to format the inserted tape?'),
|
||||||
disabled: true,
|
disabled: true,
|
||||||
bind: {
|
bind: {
|
||||||
disabled: '{!online}',
|
disabled: '{!online}',
|
||||||
|
|
|
@ -36,7 +36,7 @@ Ext.define('PBS.TapeManagement.TapeInventory', {
|
||||||
Ext.create('PBS.TapeManagement.LabelMediaWindow').show();
|
Ext.create('PBS.TapeManagement.LabelMediaWindow').show();
|
||||||
},
|
},
|
||||||
|
|
||||||
erase: function() {
|
format: function() {
|
||||||
let me = this;
|
let me = this;
|
||||||
let view = me.getView();
|
let view = me.getView();
|
||||||
let selection = view.getSelection();
|
let selection = view.getSelection();
|
||||||
|
@ -202,9 +202,9 @@ Ext.define('PBS.TapeManagement.TapeInventory', {
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
xtype: 'proxmoxButton',
|
xtype: 'proxmoxButton',
|
||||||
text: gettext('Erase'),
|
text: gettext('Format'),
|
||||||
disabled: true,
|
disabled: true,
|
||||||
handler: 'erase',
|
handler: 'format',
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
|
||||||
|
|
|
@ -11,7 +11,7 @@ Ext.define('PBS.TapeManagement.EraseWindow', {
|
||||||
return {
|
return {
|
||||||
singleDrive: me.singleDrive,
|
singleDrive: me.singleDrive,
|
||||||
hasSingleDrive: !!me.singleDrive,
|
hasSingleDrive: !!me.singleDrive,
|
||||||
warning: Ext.String.format(gettext("Are you sure you want to erase tape '{0}' ?"), me.label),
|
warning: Ext.String.format(gettext("Are you sure you want to format tape '{0}' ?"), me.label),
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue