]> git.proxmox.com Git - proxmox-widget-toolkit.git/commitdiff
node: repos: fallback to "Other" for unknown origin
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 30 Jun 2021 19:58:29 +0000 (21:58 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 30 Jun 2021 19:58:29 +0000 (21:58 +0200)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/node/APTRepositories.js

index c5c47f4d806e5da7f471276ae752a7f9cb610c23..baca834e3d0f168279202224f3b5cba3d276e73d 100644 (file)
@@ -329,6 +329,9 @@ Ext.define('Proxmox.node.APTRepositoriesGrid', {
            dataIndex: 'Origin',
            width: 120,
            renderer: (value, meta, rec) => {
            dataIndex: 'Origin',
            width: 120,
            renderer: (value, meta, rec) => {
+               if (typeof value !== 'string' || value.length === 0) {
+                   value = gettext('Other');
+               }
                let cls = 'fa fa-fw fa-question-circle-o';
                if (value.match(/^\s*Proxmox\s*$/i)) {
                    cls = 'pmx-itype-icon pmx-itype-icon-proxmox-x';
                let cls = 'fa fa-fw fa-question-circle-o';
                if (value.match(/^\s*Proxmox\s*$/i)) {
                    cls = 'pmx-itype-icon pmx-itype-icon-proxmox-x';