mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-04-28 19:41:17 +00:00
Restore infrastructure resource identity labels
This commit is contained in:
parent
79434a090d
commit
b44abc0dfc
20 changed files with 106 additions and 51 deletions
|
|
@ -1,5 +1,5 @@
|
|||
import type { Resource } from '@/types/resource';
|
||||
import { getPreferredResourceDisplayName } from '@/utils/resourceIdentity';
|
||||
import { getPreferredInfrastructureDisplayName } from '@/utils/resourceIdentity';
|
||||
import {
|
||||
sortResources,
|
||||
type ResourceGroup,
|
||||
|
|
@ -38,7 +38,7 @@ export const HOST_TABLE_WINDOW_SIZE = 137;
|
|||
export const buildResourceLabelById = (resources: Resource[]): Map<string, string> => {
|
||||
const map = new Map<string, string>();
|
||||
for (const resource of resources) {
|
||||
map.set(resource.id, getPreferredResourceDisplayName(resource));
|
||||
map.set(resource.id, getPreferredInfrastructureDisplayName(resource));
|
||||
}
|
||||
return map;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue