]> git.proxmox.com Git - proxmox-widget-toolkit.git/commitdiff
node/APTRepositories: make 'no pve repositories' an error
authorDominik Csapak <d.csapak@proxmox.com>
Mon, 5 Jul 2021 14:06:58 +0000 (16:06 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 5 Jul 2021 14:25:35 +0000 (16:25 +0200)
since we also show it as error in the node summary

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
src/node/APTRepositories.js

index e8f807df19919c013dbd610a47b9ac14b81d78c5..e30396b98020e10fc06d0614e25ed4476fb4b8b7 100644 (file)
@@ -462,7 +462,12 @@ Ext.define('Proxmox.node.APTRepositories', {
            let wrongSuites = vm.get('suitesWarning');
 
            if (!enterprise && !nosubscription && !test) {
-               addWarn(Ext.String.format(gettext('No {0} repository is enabled, you do not get any updates!'), vm.get('product')));
+               status = 'critical';
+               text = gettext('Error');
+               store.add({
+                   status: 'critical',
+                   message: Ext.String.format(gettext('No {0} repository is enabled, you do not get any updates!'), vm.get('product')),
+               });
            } else if (enterprise && !nosubscription && !test && activeSubscription) {
                addGood(Ext.String.format(gettext('You get supported updates for {0}'), vm.get('product')));
            } else if (nosubscription || test) {