[pve-devel] [PATCH widget-toolkit] node/APTRepositories: make 'no pve repositories' an error

Dominik Csapak d.csapak at proxmox.com
Mon Jul 5 16:06:58 CEST 2021


since we also show it as error in the node summary

Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
 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) {
-- 
2.30.2






More information about the pve-devel mailing list