mirror of
https://git.proxmox.com/git/proxmox-widget-toolkit
synced 2025-05-29 21:16:13 +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',
|
dataIndex: 'Origin',
|
||||||
width: 120,
|
width: 120,
|
||||||
renderer: (value, meta, rec) => {
|
renderer: (value, meta, rec) => {
|
||||||
|
if (typeof value !== 'string' || value.length === 0) {
|
||||||
|
value = gettext('Other');
|
||||||
|
}
|
||||||
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';
|
||||||
|
Loading…
Reference in New Issue
Block a user