]> git.proxmox.com Git - proxmox-widget-toolkit.git/commitdiff
node: repos: increase width of add-repo window + style cleanup
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 30 Jun 2021 19:46:10 +0000 (21:46 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 30 Jun 2021 19:46:12 +0000 (21:46 +0200)
We have some longer descriptions so the default width looks crammed.

Also, avoid a intermediate variable which is only used once without
any change.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/node/APTRepositories.js

index 1597fb62a650a4f032d0909a1e685b3f4213a7c8..99955506d1ea907e81af48999c7a9e3431d59733 100644 (file)
@@ -23,6 +23,7 @@ Ext.define('Proxmox.window.APTRepositoryAdd', {
     isAdd: true,
 
     subject: gettext('Repository'),
+    width: 600,
 
     initComponent: function() {
        let me = this;
@@ -86,14 +87,12 @@ Ext.define('Proxmox.window.APTRepositoryAdd', {
 
        repoSelector.setValue(me.repoInfo[0].handle);
 
-       let items = [
-           repoSelector,
-           description,
-           status,
-       ];
-
        Ext.apply(me, {
-           items: items,
+           items: [
+               repoSelector,
+               description,
+               status,
+           ],
            repoSelector: repoSelector,
        });