]> git.proxmox.com Git - pve-manager.git/commitdiff
gui: never collapse notes for templates
authorStefan Reiter <s.reiter@proxmox.com>
Wed, 6 May 2020 10:34:59 +0000 (12:34 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 6 May 2020 14:24:37 +0000 (16:24 +0200)
There's no graphs on screen, so no reason to collapse the notes to save
space. Besides, it looked a bit funky expanding the notes on smaller
screens, since they always jumped to the bottom to fill the space...

Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
www/manager6/panel/NotesView.js

index edf38e5d219daca998a745456a7d41be5b29c861..90de7b5a5c6e8d9bb09191fd4b35149590f1b74e 100644 (file)
@@ -105,7 +105,7 @@ Ext.define('PVE.panel.NotesView', {
        me.callParent();
        if (type === 'node') {
            me.down('#tbar').setVisible(true);
-       } else {
+       } else if (me.pveSelNode.data.template !== 1) {
            me.setCollapsible(true);
            me.collapseDirection = 'right';