mirror of
git://git.proxmox.com/git/proxmox-backup.git
synced 2025-03-19 18:50:17 +03:00
String concatenating a variable with some static text as gettext parameter cannot really work, and it also does not make sense to do most of the time, as even if we'd use some overly generic format string like '{0} (disabled)', it would be not easy to translate correctly in all languages in such a generic way. So just use the actual full string, which is already contained in our translation catalogue anyway… Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
29 lines
671 B
JavaScript
29 lines
671 B
JavaScript
Ext.define('PBS.window.GCJobEdit', {
|
|
extend: 'Proxmox.window.Edit',
|
|
alias: 'widget.pbsGCJobEdit',
|
|
mixins: ['Proxmox.Mixin.CBind'],
|
|
|
|
userid: undefined,
|
|
onlineHelp: 'maintenance_gc',
|
|
isAdd: false,
|
|
|
|
subject: gettext('Garbage Collect Schedule'),
|
|
|
|
cbindData: function(initial) {
|
|
let me = this;
|
|
|
|
me.datastore = encodeURIComponent(me.datastore);
|
|
me.url = `/api2/extjs/config/datastore/${me.datastore}`;
|
|
me.method = 'PUT';
|
|
me.autoLoad = true;
|
|
return {};
|
|
},
|
|
|
|
items: {
|
|
xtype: 'pbsCalendarEvent',
|
|
name: 'gc-schedule',
|
|
fieldLabel: gettext("GC Schedule"),
|
|
emptyText: gettext('none (disabled)'),
|
|
},
|
|
});
|