mirror of
https://git.proxmox.com/git/proxmox-widget-toolkit
synced 2025-05-28 15:57:52 +00:00
node: repos: fallback to "Other" for unknown origin
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
5a1fddb622
commit
f0966f2930
@ -329,6 +329,9 @@ Ext.define('Proxmox.node.APTRepositoriesGrid', {
|
||||
dataIndex: 'Origin',
|
||||
width: 120,
|
||||
renderer: (value, meta, rec) => {
|
||||
if (typeof value !== 'string' || value.length === 0) {
|
||||
value = gettext('Other');
|
||||
}
|
||||
let cls = 'fa fa-fw fa-question-circle-o';
|
||||
if (value.match(/^\s*Proxmox\s*$/i)) {
|
||||
cls = 'pmx-itype-icon pmx-itype-icon-proxmox-x';
|
||||
|
Loading…
Reference in New Issue
Block a user