node/APTRepositories: make 'no pve repositories' an error

since we also show it as error in the node summary

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
Dominik Csapak 2021-07-05 16:06:58 +02:00 committed by Thomas Lamprecht
parent e1fc474412
commit 25d17082b0

View File

@ -462,7 +462,12 @@ Ext.define('Proxmox.node.APTRepositories', {
let wrongSuites = vm.get('suitesWarning'); let wrongSuites = vm.get('suitesWarning');
if (!enterprise && !nosubscription && !test) { 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) { } else if (enterprise && !nosubscription && !test && activeSubscription) {
addGood(Ext.String.format(gettext('You get supported updates for {0}'), vm.get('product'))); addGood(Ext.String.format(gettext('You get supported updates for {0}'), vm.get('product')));
} else if (nosubscription || test) { } else if (nosubscription || test) {