]> git.proxmox.com Git - pve-manager.git/commitdiff
ui: content/backup-view: move comment to second col, make flex
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 12 Nov 2020 17:34:36 +0000 (18:34 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 12 Nov 2020 17:34:38 +0000 (18:34 +0100)
to make it more look like what we to in PBS

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
www/manager6/grid/BackupView.js
www/manager6/storage/ContentView.js

index 89a4bc2fa9085569dd189f003d362ff6edb6a0c1..ec0b60b2d9a977d924c4e243def919f93ef24f01 100644 (file)
@@ -232,11 +232,17 @@ Ext.define('PVE.grid.BackupView', {
            columns: [
                {
                    header: gettext('Name'),
-                   flex: 1,
+                   flex: 2,
                    sortable: true,
                    renderer: PVE.Utils.render_storage_content,
                    dataIndex: 'volid'
                },
+               {
+                   header: gettext('Comment'),
+                   dataIndex: 'comment',
+                   flex: 1,
+                   renderer: Ext.htmlEncode,
+               },
                {
                    header: gettext('Date'),
                    width: 150,
@@ -258,12 +264,6 @@ Ext.define('PVE.grid.BackupView', {
                    dataIndex: 'vmid',
                    hidden: true,
                },
-               {
-                   header: gettext('Comment'),
-                   dataIndex: 'comment',
-                   width: 100,
-                   renderer: Ext.htmlEncode,
-               },
                {
                    header: gettext('Verify State'),
                    dataIndex: 'verification',
index 6b30167aa6ebab62a82a2dcae3e26b440ee4086e..a879cc19b401be36edc9354b181de94899a51786 100644 (file)
@@ -583,11 +583,17 @@ Ext.define('PVE.storage.ContentView', {
            columns: [
                {
                    header: gettext('Name'),
-                   flex: 1,
+                   flex: 2,
                    sortable: true,
                    renderer: PVE.Utils.render_storage_content,
                    dataIndex: 'text'
                },
+               {
+                   header: gettext('Comment'),
+                   flex: 1,
+                   renderer: Ext.htmlEncode,
+                   dataIndex: 'comment',
+               },
                {
                    header: gettext('Date'),
                    width: 150,
@@ -610,12 +616,6 @@ Ext.define('PVE.storage.ContentView', {
                    renderer: Proxmox.Utils.format_size,
                    dataIndex: 'size'
                },
-               {
-                   header: gettext('Comment'),
-                   width: 100,
-                   renderer: Ext.htmlEncode,
-                   dataIndex: 'comment',
-               }
            ],
            listeners: {
                activate: reload