mirror of
https://git.proxmox.com/git/proxmox-widget-toolkit
synced 2025-10-11 11:00:56 +00:00
node: repo: highlight proxmox repos that are not producition-ready
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
58b7186065
commit
0668981954
@ -295,8 +295,23 @@ Ext.define('Proxmox.node.APTRepositoriesGrid', {
|
|||||||
{
|
{
|
||||||
header: gettext('Components'),
|
header: gettext('Components'),
|
||||||
dataIndex: 'Components',
|
dataIndex: 'Components',
|
||||||
renderer: function(components, cell, record) {
|
renderer: function(components, metaData, record) {
|
||||||
return components.join(' ');
|
let err = '';
|
||||||
|
if (components.length === 1) {
|
||||||
|
// FIXME: this should be a flag set to the actual repsotiories, i.e., a tristate
|
||||||
|
// like production-read =
|
||||||
|
if (components[0].match(/\w+(-no-subscription|test)\s*$/i)) {
|
||||||
|
metaData.tdCls = 'proxmox-warning-row';
|
||||||
|
err = '<i class="fa fa-fw warning fa-exclamation-circle"></i> ';
|
||||||
|
|
||||||
|
let qtip = components[0].match(/no-subscription/)
|
||||||
|
? gettext('The no-subscription repository is NOT production-ready')
|
||||||
|
: gettext('The test repository may contain unstable updates')
|
||||||
|
;
|
||||||
|
metaData.tdAttr = `data-qtip="${Ext.htmlEncode(qtip)}"`;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return components.join(' ') + err;
|
||||||
},
|
},
|
||||||
width: 170,
|
width: 170,
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user