apt: match "Debian Backports" origin

some users might have that enabled, and we know it is from Debian and
not '?'

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
This commit is contained in:
Fabian Grünbichler 2021-07-15 10:08:48 +02:00 committed by Thomas Lamprecht
parent 1820e77d5c
commit 8b06793b3d

View File

@ -360,7 +360,7 @@ Ext.define('Proxmox.node.APTRepositoriesGrid', {
let cls = 'fa fa-fw fa-question-circle-o'; let cls = 'fa fa-fw fa-question-circle-o';
if (value.match(/^\s*Proxmox\s*$/i)) { if (value.match(/^\s*Proxmox\s*$/i)) {
cls = 'pmx-itype-icon pmx-itype-icon-proxmox-x'; cls = 'pmx-itype-icon pmx-itype-icon-proxmox-x';
} else if (value.match(/^\s*Debian\s*$/i)) { } else if (value.match(/^\s*Debian\s*(:?Backports)?$/i)) {
cls = 'pmx-itype-icon pmx-itype-icon-debian-swirl'; cls = 'pmx-itype-icon pmx-itype-icon-debian-swirl';
} }
return `<i class='${cls}'></i> ${value}`; return `<i class='${cls}'></i> ${value}`;