mirror of
https://github.com/Joxit/docker-registry-ui.git
synced 2026-05-23 04:42:47 +00:00
feat: expose some custom labels
This commit is contained in:
@@ -76,7 +76,10 @@ export function getHistoryIcon(attribute) {
|
||||
case 'ExposedPorts':
|
||||
return 'router';
|
||||
default:
|
||||
'';
|
||||
if (attribute.startsWith('custom-label-')) {
|
||||
return 'label';
|
||||
}
|
||||
return '';
|
||||
}
|
||||
}
|
||||
|
||||
@@ -201,3 +204,7 @@ export function decodeURI(url) {
|
||||
export function truthy(value) {
|
||||
return value === true || value === 'true';
|
||||
}
|
||||
|
||||
export function stringToArray(value) {
|
||||
return value && typeof value === 'string' ? value.split(',') : [];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user