mirror of
https://git.proxmox.com/git/proxmox-widget-toolkit
synced 2025-05-29 06:46:34 +00:00
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:
parent
e1fc474412
commit
25d17082b0
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user