mirror of
https://git.proxmox.com/git/proxmox-widget-toolkit
synced 2025-05-18 08:02:19 +00:00
node: repos: only show suites warning at the top if enabled repository is affected
The warning still shows up for the disabled repository itself, but having a disabled repository with a bad suite is not problematic for the configuration status as a whole. Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
This commit is contained in:
parent
89b0dd2e4f
commit
e455399aef
@ -665,9 +665,6 @@ Ext.define('Proxmox.node.APTRepositories', {
|
|||||||
(info.kind === 'ignore-pre-upgrade-warning' && !repoGrid.majorUpgradeAllowed)
|
(info.kind === 'ignore-pre-upgrade-warning' && !repoGrid.majorUpgradeAllowed)
|
||||||
) {
|
) {
|
||||||
infos[path][idx].warnings.push(info);
|
infos[path][idx].warnings.push(info);
|
||||||
if (!suitesWarning && info.property === 'Suites') {
|
|
||||||
suitesWarning = true;
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
throw 'unknown info';
|
throw 'unknown info';
|
||||||
}
|
}
|
||||||
@ -682,6 +679,10 @@ Ext.define('Proxmox.node.APTRepositories', {
|
|||||||
if (infos[file.path] && infos[file.path][n]) {
|
if (infos[file.path] && infos[file.path][n]) {
|
||||||
repo.Origin = infos[file.path][n].origin || Proxmox.Utils.UnknownText;
|
repo.Origin = infos[file.path][n].origin || Proxmox.Utils.UnknownText;
|
||||||
repo.warnings = infos[file.path][n].warnings || [];
|
repo.warnings = infos[file.path][n].warnings || [];
|
||||||
|
|
||||||
|
if (repo.Enabled && repo.warnings.some(w => w.property === 'Suites')) {
|
||||||
|
suitesWarning = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
gridData.push(repo);
|
gridData.push(repo);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user