ui: tape: add Edit Windows
includes edit windows for * Drives * Changers * Media Pools * Labeling Media * Making new Tape Backups Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
committed by
Dietmar Maurer
parent
c72fdb53ae
commit
80a3749088
43
www/tape/window/TapeBackup.js
Normal file
43
www/tape/window/TapeBackup.js
Normal file
@ -0,0 +1,43 @@
|
||||
Ext.define('PBS.TapeManagement.TapeBackupWindow', {
|
||||
extend: 'Proxmox.window.Edit',
|
||||
alias: 'pbsTapeBackupWindow',
|
||||
|
||||
subject: gettext('Backup'),
|
||||
url: '/api2/extjs/tape/backup',
|
||||
method: 'POST',
|
||||
showTaskViewer: true,
|
||||
isCreate: true,
|
||||
|
||||
items: [
|
||||
{
|
||||
xtype: 'pbsDataStoreSelector',
|
||||
fieldLabel: gettext('Datastore'),
|
||||
name: 'store',
|
||||
},
|
||||
{
|
||||
xtype: 'pbsMediaPoolSelector',
|
||||
fieldLabel: gettext('Media Pool'),
|
||||
name: 'pool',
|
||||
},
|
||||
{
|
||||
xtype: 'proxmoxcheckbox',
|
||||
name: 'export-media-set',
|
||||
fieldLabel: gettext('Export Media Set'),
|
||||
listeners: {
|
||||
change: function(cb, value) {
|
||||
let me = this;
|
||||
let eject = me.up('window').down('proxmoxcheckbox[name=eject-media]');
|
||||
if (value) {
|
||||
eject.setValue(false);
|
||||
}
|
||||
eject.setDisabled(!!value);
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
xtype: 'proxmoxcheckbox',
|
||||
name: 'eject-media',
|
||||
fieldLabel: gettext('Eject Media'),
|
||||
},
|
||||
],
|
||||
});
|
Reference in New Issue
Block a user