2021-01-28 11:59:46 +00:00
|
|
|
Ext.define('PBS.TapeManagement.TapeBackupWindow', {
|
|
|
|
extend: 'Proxmox.window.Edit',
|
|
|
|
alias: 'pbsTapeBackupWindow',
|
|
|
|
|
2021-02-02 13:00:37 +00:00
|
|
|
width: 400,
|
2021-01-28 11:59:46 +00:00
|
|
|
subject: gettext('Backup'),
|
|
|
|
url: '/api2/extjs/tape/backup',
|
|
|
|
method: 'POST',
|
|
|
|
showTaskViewer: true,
|
|
|
|
isCreate: true,
|
|
|
|
|
2021-02-02 13:00:37 +00:00
|
|
|
defaults: {
|
2021-05-10 14:45:54 +00:00
|
|
|
labelWidth: 150,
|
2021-02-02 13:00:37 +00:00
|
|
|
},
|
|
|
|
|
2021-01-28 11:59:46 +00:00
|
|
|
items: [
|
|
|
|
{
|
|
|
|
xtype: 'pbsDataStoreSelector',
|
|
|
|
fieldLabel: gettext('Datastore'),
|
|
|
|
name: 'store',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
xtype: 'pbsMediaPoolSelector',
|
|
|
|
fieldLabel: gettext('Media Pool'),
|
|
|
|
name: 'pool',
|
|
|
|
},
|
2021-02-02 13:00:37 +00:00
|
|
|
{
|
|
|
|
xtype: 'pbsDriveSelector',
|
|
|
|
fieldLabel: gettext('Drive'),
|
|
|
|
name: 'drive',
|
|
|
|
},
|
2021-05-10 14:45:54 +00:00
|
|
|
{
|
|
|
|
xtype: 'proxmoxcheckbox',
|
|
|
|
name: 'force-media-set',
|
2021-05-21 13:53:50 +00:00
|
|
|
fieldLabel: gettext('Force new Media-Set'),
|
2021-05-10 14:45:54 +00:00
|
|
|
},
|
2021-01-28 11:59:46 +00:00
|
|
|
{
|
|
|
|
xtype: 'proxmoxcheckbox',
|
|
|
|
name: 'export-media-set',
|
2021-05-21 13:53:50 +00:00
|
|
|
fieldLabel: gettext('Export Media-Set'),
|
2021-01-28 11:59:46 +00:00
|
|
|
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'),
|
|
|
|
},
|
2021-03-05 08:45:32 +00:00
|
|
|
{
|
2021-11-17 08:27:21 +00:00
|
|
|
xtype: 'pmxUserSelector',
|
2021-03-05 08:45:32 +00:00
|
|
|
name: 'notify-user',
|
|
|
|
fieldLabel: gettext('Notify User'),
|
|
|
|
emptyText: 'root@pam',
|
|
|
|
value: null,
|
|
|
|
allowBlank: true,
|
2021-03-08 13:10:51 +00:00
|
|
|
skipEmptyText: true,
|
2021-03-05 08:45:32 +00:00
|
|
|
renderer: Ext.String.htmlEncode,
|
|
|
|
},
|
2021-01-28 11:59:46 +00:00
|
|
|
],
|
|
|
|
});
|