mirror of
https://git.proxmox.com/git/proxmox-backup
synced 2025-05-07 07:19:14 +00:00

In the global datastore view, extend the prune view to display gc job status as a table. Use the same widget in the local view and dispaly gc job status as a single row. The local PruneAndGC view is parameterized (cbind) with the datastore. At initialization the only row is selected. This allows the rest of the grid to act on selected rows and it requires far less special casing if the datastore is set on the view or not. Having a single row always selected and therefore highlighted, is visually not appealing. Therefore, highlighting of selected rows is disabled in the local view. Moved GCView to different file and enhanced it with last, next run, status and duration. Added button to show task log. Changed `render_task_status()` to also take in account upids stored in other 'columns'. Signed-off-by: Stefan Lendl <s.lendl@proxmox.com> [LW: include ref to bugzilla in commit message] Signed-off-by: Lukas Wagner <l.wagner@proxmox.com> Originally-by: Gabriel Goller <g.goller@proxmox.com> Tested-by: Gabriel Goller <g.goller@proxmox.com> Reviewd-by: Gabriel Goller <g.goller@proxmox.com> Tested-by: Lukas Wagner <l.wagner@proxmox.com> Reviewed-by: Lukas Wagner <l.wagner@proxmox.com>
29 lines
692 B
JavaScript
29 lines
692 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(Proxmox.Utils.NoneText + " (disabled)"),
|
|
},
|
|
});
|