[pve-devel] [PATCH manager 2/5] ui: BackupView: add scrolling overflow handler for the toolbar
Dominik Csapak
d.csapak at proxmox.com
Wed Jan 18 15:35:20 CET 2023
since we already have many elements here, and in our minimal resolution
of 1280x720 we don't see all elements any more.
reported in the forum:
https://forum.proxmox.com/threads/web-forms-extend-beyond-web-page-window-in-some-cases.120714
Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
www/manager6/dc/Backup.js | 71 +++++++++++++++++++++------------------
1 file changed, 38 insertions(+), 33 deletions(-)
diff --git a/www/manager6/dc/Backup.js b/www/manager6/dc/Backup.js
index d69370b69..0c4051b65 100644
--- a/www/manager6/dc/Backup.js
+++ b/www/manager6/dc/Backup.js
@@ -747,41 +747,46 @@ Ext.define('PVE.dc.BackupView', {
viewConfig: {
trackOver: false,
},
- tbar: [
- {
- text: gettext('Add'),
- handler: function() {
- var win = Ext.create('PVE.dc.BackupEdit', {});
- win.on('destroy', reload);
- win.show();
+ dockedItems: [{
+ xtype: 'toolbar',
+ overflowHandler: 'scroller',
+ dock: 'top',
+ items: [
+ {
+ text: gettext('Add'),
+ handler: function() {
+ var win = Ext.create('PVE.dc.BackupEdit', {});
+ win.on('destroy', reload);
+ win.show();
+ },
},
- },
- '-',
- remove_btn,
- edit_btn,
- detail_btn,
- '-',
- run_btn,
- '->',
- noBackupJobWarning,
- noBackupJobInfoButton,
- '-',
- {
- xtype: 'proxmoxButton',
- selModel: null,
- text: gettext('Schedule Simulator'),
- handler: () => {
- let record = sm.getSelection()[0];
- let schedule;
- if (record) {
- schedule = record.data.schedule;
- }
- Ext.create('PVE.window.ScheduleSimulator', {
- schedule,
- }).show();
+ '-',
+ remove_btn,
+ edit_btn,
+ detail_btn,
+ '-',
+ run_btn,
+ '->',
+ noBackupJobWarning,
+ noBackupJobInfoButton,
+ '-',
+ {
+ xtype: 'proxmoxButton',
+ selModel: null,
+ text: gettext('Schedule Simulator'),
+ handler: () => {
+ let record = sm.getSelection()[0];
+ let schedule;
+ if (record) {
+ schedule = record.data.schedule;
+ }
+ Ext.create('PVE.window.ScheduleSimulator', {
+ schedule,
+ }).show();
+ },
},
- },
- ],
+ ],
+ }],
columns: [
{
header: gettext('Enabled'),
--
2.30.2
More information about the pve-devel
mailing list