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 view = me.getView();
|
||||
let label = record.data['label-text'];
|
||||
@ -703,8 +703,8 @@ Ext.define('PBS.TapeManagement.ChangerStatus', {
|
||||
},
|
||||
{
|
||||
iconCls: 'fa fa-trash-o',
|
||||
handler: 'erase',
|
||||
tooltip: gettext('Erase'),
|
||||
handler: 'format',
|
||||
tooltip: gettext('Format'),
|
||||
isDisabled: (v, r, c, i, rec) => !rec.data['label-text'],
|
||||
},
|
||||
{
|
||||
|
@ -215,7 +215,7 @@ Ext.define('PBS.TapeManagement.DriveStatus', {
|
||||
handler: 'format',
|
||||
iconCls: 'fa fa-trash-o',
|
||||
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,
|
||||
bind: {
|
||||
disabled: '{!online}',
|
||||
|
@ -36,7 +36,7 @@ Ext.define('PBS.TapeManagement.TapeInventory', {
|
||||
Ext.create('PBS.TapeManagement.LabelMediaWindow').show();
|
||||
},
|
||||
|
||||
erase: function() {
|
||||
format: function() {
|
||||
let me = this;
|
||||
let view = me.getView();
|
||||
let selection = view.getSelection();
|
||||
@ -202,9 +202,9 @@ Ext.define('PBS.TapeManagement.TapeInventory', {
|
||||
},
|
||||
{
|
||||
xtype: 'proxmoxButton',
|
||||
text: gettext('Erase'),
|
||||
text: gettext('Format'),
|
||||
disabled: true,
|
||||
handler: 'erase',
|
||||
handler: 'format',
|
||||
},
|
||||
],
|
||||
|
||||
|
@ -11,7 +11,7 @@ Ext.define('PBS.TapeManagement.EraseWindow', {
|
||||
return {
|
||||
singleDrive: 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
Block a user