From 25d17082b0bfc4804e1222565e7e0dd91710f1ec Mon Sep 17 00:00:00 2001 From: Dominik Csapak Date: Mon, 5 Jul 2021 16:06:58 +0200 Subject: [PATCH] node/APTRepositories: make 'no pve repositories' an error since we also show it as error in the node summary Signed-off-by: Dominik Csapak --- src/node/APTRepositories.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/node/APTRepositories.js b/src/node/APTRepositories.js index e8f807d..e30396b 100644 --- a/src/node/APTRepositories.js +++ b/src/node/APTRepositories.js @@ -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) {