Commit 8e703e48 authored by Emmanuel Kasper's avatar Emmanuel Kasper Committed by Dietmar Maurer

ext5migrate: adapt Backup items to new KVCombobox parent class

This allows the Backup to work with ExtJS5
parent 5c922347
Ext.define('PVE.form.BackupModeSelector', { Ext.define('PVE.form.BackupModeSelector', {
extend: 'PVE.form.KVComboBox', extend: 'PVE.form.KVComboBox',
alias: ['widget.pveBackupModeSelector'], alias: ['widget.pveBackupModeSelector'],
comboItems: [
initComponent: function() { ['snapshot', gettext('Snapshot')],
var me = this; ['suspend', gettext('Suspend')],
['stop', gettext('Stop')]
me.data = [ ]
['snapshot', gettext('Snapshot')],
['suspend', gettext('Suspend')],
['stop', gettext('Stop')]
];
me.callParent();
}
}); });
Ext.define('PVE.form.CompressionSelector', { Ext.define('PVE.form.CompressionSelector', {
extend: 'PVE.form.KVComboBox', extend: 'PVE.form.KVComboBox',
alias: ['widget.pveCompressionSelector'], alias: ['widget.pveCompressionSelector'],
comboItems: [
initComponent: function() { ['', PVE.Utils.noneText],
var me = this; ['lzo', 'LZO (' + gettext('fast') + ')'],
['gzip', 'GZIP (' + gettext('good') + ')']
me.data = [ ]
['', PVE.Utils.noneText],
['lzo', 'LZO (' + gettext('fast') + ')'],
['gzip', 'GZIP (' + gettext('good') + ')']
];
me.callParent();
}
}); });
Ext.define('PVE.form.DayOfWeekSelector', { Ext.define('PVE.form.DayOfWeekSelector', {
extend: 'PVE.form.KVComboBox', extend: 'PVE.form.KVComboBox',
alias: ['widget.pveDayOfWeekSelector'], alias: ['widget.pveDayOfWeekSelector'],
comboItems: [
initComponent: function() {
var me = this;
me.data = [
['sun', Ext.util.Format.htmlDecode(Ext.Date.dayNames[0])], ['sun', Ext.util.Format.htmlDecode(Ext.Date.dayNames[0])],
['mon', Ext.util.Format.htmlDecode(Ext.Date.dayNames[1])], ['mon', Ext.util.Format.htmlDecode(Ext.Date.dayNames[1])],
['tue', Ext.util.Format.htmlDecode(Ext.Date.dayNames[2])], ['tue', Ext.util.Format.htmlDecode(Ext.Date.dayNames[2])],
...@@ -13,8 +9,5 @@ Ext.define('PVE.form.DayOfWeekSelector', { ...@@ -13,8 +9,5 @@ Ext.define('PVE.form.DayOfWeekSelector', {
['thu', Ext.util.Format.htmlDecode(Ext.Date.dayNames[4])], ['thu', Ext.util.Format.htmlDecode(Ext.Date.dayNames[4])],
['fri', Ext.util.Format.htmlDecode(Ext.Date.dayNames[5])], ['fri', Ext.util.Format.htmlDecode(Ext.Date.dayNames[5])],
['sat', Ext.util.Format.htmlDecode(Ext.Date.dayNames[6])] ['sat', Ext.util.Format.htmlDecode(Ext.Date.dayNames[6])]
]; ]
me.callParent();
}
}); });
Ext.define('PVE.form.EmailNotificationSelector', { Ext.define('PVE.form.EmailNotificationSelector', {
extend: 'PVE.form.KVComboBox', extend: 'PVE.form.KVComboBox',
alias: ['widget.pveEmailNotificationSelector'], alias: ['widget.pveEmailNotificationSelector'],
comboItems: [
initComponent: function() { ['always', gettext('Always')],
var me = this; ['failure', gettext('On failure only')]
]
me.data = [
['always', gettext('Always')],
['failure', gettext('On failure only')]
];
me.callParent();
}
}); });
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment