5
0
mirror of git://git.proxmox.com/git/proxmox-backup.git synced 2025-03-20 22:50:18 +03:00
proxmox-backup/www/window/GCJobEdit.js

29 lines
671 B
JavaScript
Raw Permalink Normal View History

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)'),
},
});