[pbs-devel] [PATCH proxmox-backup 5/9] ui: MainView: navigation: use different ui class

Dominik Csapak d.csapak at proxmox.com
Wed May 26 11:12:02 CEST 2021


by default the treelist gets the 'nav' ui, which in newer extjs
versions has a custom styling (unlike before)

Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
 www/MainView.js      | 3 ++-
 www/css/ext6-pbs.css | 2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/www/MainView.js b/www/MainView.js
index 54fec62e..cd63f4c7 100644
--- a/www/MainView.js
+++ b/www/MainView.js
@@ -272,6 +272,7 @@ Ext.define('PBS.MainView', {
 	    items: [{
 		xtype: 'navigationtree',
 		minWidth: 180,
+		ui: 'pve-nav',
 		reference: 'navtree',
 		// we have to define it here until extjs 6.2
 		// because of a bug where a viewcontroller does not detect
@@ -281,7 +282,7 @@ Ext.define('PBS.MainView', {
 		},
 	    }, {
 		xtype: 'box',
-		cls: 'x-treelist-nav',
+		cls: 'x-treelist-pve-nav',
 		flex: 1,
 	    }],
 	},
diff --git a/www/css/ext6-pbs.css b/www/css/ext6-pbs.css
index 51d68711..e561eb10 100644
--- a/www/css/ext6-pbs.css
+++ b/www/css/ext6-pbs.css
@@ -143,7 +143,7 @@ table:not(.x-grid-item-selected) tr.x-grid-row.disabled {
     color: #000;
 }
 
-.x-treelist-nav {
+.x-treelist-pve-nav {
     background-color: #f5f5f5;
     border-right: 1px solid #cfcfcf;
 }
-- 
2.20.1






More information about the pbs-devel mailing list