ui: Fix Management server comments PR 7379 UI issue (#7450)

This PR adds support for annotations to be added for the management server as a resource/type.
This commit is contained in:
kishankavala 2023-04-20 15:53:11 +05:30 committed by GitHub
parent e035d73641
commit 2ac1b7e959
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 3 deletions

View File

@ -77,6 +77,7 @@ public interface AnnotationService {
list.add(EntityType.SECONDARY_STORAGE);
list.add(EntityType.VR);
list.add(EntityType.SYSTEM_VM);
list.add(EntityType.MANAGEMENT_SERVER);
if (roleType != RoleType.DomainAdmin) {
list.add(EntityType.DOMAIN);
list.add(EntityType.SERVICE_OFFERING);

View File

@ -42,6 +42,10 @@ export default {
{
name: 'pending.jobs',
component: shallowRef(defineAsyncComponent(() => import('@/views/infra/AsyncJobsTab.vue')))
},
{
name: 'comments',
component: shallowRef(defineAsyncComponent(() => import('@/components/view/AnnotationsTab.vue')))
}
],
actions: [
@ -81,9 +85,6 @@ export default {
value: (record, params) => { return record.id }
}
}
}, {
name: 'comments',
component: shallowRef(defineAsyncComponent(() => import('@/components/view/AnnotationsTab.vue')))
}
]
}