mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-07-22 04:46:46 +00:00
ui: backup info: code cleanups
And switch the title of the "not in any job" info window to title case, just like the button that opens it. Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
315feceaa8
commit
38e79438f7
@ -646,35 +646,6 @@ Ext.define('PVE.dc.BackupView', {
|
|||||||
}));
|
}));
|
||||||
};
|
};
|
||||||
|
|
||||||
let run_show_not_backed = function() {
|
|
||||||
Ext.create('Ext.window.Window', {
|
|
||||||
modal: true,
|
|
||||||
width: 600,
|
|
||||||
height: 500,
|
|
||||||
resizable: true,
|
|
||||||
layout: 'fit',
|
|
||||||
title: gettext('Guests without backup job'),
|
|
||||||
items: [
|
|
||||||
{
|
|
||||||
xtype: 'panel',
|
|
||||||
region: 'center',
|
|
||||||
layout: {
|
|
||||||
type: 'vbox',
|
|
||||||
align: 'stretch',
|
|
||||||
},
|
|
||||||
items: [
|
|
||||||
{
|
|
||||||
xtype: 'pveBackedGuests',
|
|
||||||
flex: 1,
|
|
||||||
layout: 'fit',
|
|
||||||
store: not_backed_store,
|
|
||||||
},
|
|
||||||
],
|
|
||||||
},
|
|
||||||
],
|
|
||||||
}).show();
|
|
||||||
};
|
|
||||||
|
|
||||||
var edit_btn = new Proxmox.button.Button({
|
var edit_btn = new Proxmox.button.Button({
|
||||||
text: gettext('Edit'),
|
text: gettext('Edit'),
|
||||||
disabled: true,
|
disabled: true,
|
||||||
@ -728,7 +699,35 @@ Ext.define('PVE.dc.BackupView', {
|
|||||||
tooltip: gettext('Some guests are not covered by any backup job.'),
|
tooltip: gettext('Some guests are not covered by any backup job.'),
|
||||||
iconCls: 'fa fa-fw fa-exclamation-circle',
|
iconCls: 'fa fa-fw fa-exclamation-circle',
|
||||||
hidden: true,
|
hidden: true,
|
||||||
handler: run_show_not_backed,
|
handler: () => {
|
||||||
|
Ext.create('Ext.window.Window', {
|
||||||
|
autoShow: true,
|
||||||
|
modal: true,
|
||||||
|
width: 600,
|
||||||
|
height: 500,
|
||||||
|
resizable: true,
|
||||||
|
layout: 'fit',
|
||||||
|
title: gettext('Guests Without Backup Job'),
|
||||||
|
items: [
|
||||||
|
{
|
||||||
|
xtype: 'panel',
|
||||||
|
region: 'center',
|
||||||
|
layout: {
|
||||||
|
type: 'vbox',
|
||||||
|
align: 'stretch',
|
||||||
|
},
|
||||||
|
items: [
|
||||||
|
{
|
||||||
|
xtype: 'pveBackedGuests',
|
||||||
|
flex: 1,
|
||||||
|
layout: 'fit',
|
||||||
|
store: not_backed_store,
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
],
|
||||||
|
});
|
||||||
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
Proxmox.Utils.monStoreErrors(me, store);
|
Proxmox.Utils.monStoreErrors(me, store);
|
||||||
@ -770,8 +769,9 @@ Ext.define('PVE.dc.BackupView', {
|
|||||||
schedule = record.data.schedule;
|
schedule = record.data.schedule;
|
||||||
}
|
}
|
||||||
Ext.create('PVE.window.ScheduleSimulator', {
|
Ext.create('PVE.window.ScheduleSimulator', {
|
||||||
|
autoShow: true,
|
||||||
schedule,
|
schedule,
|
||||||
}).show();
|
});
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
Loading…
Reference in New Issue
Block a user