Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion shell/components/Resource/Detail/ResourcePopover/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ const fetch = useFetch(async() => {
return r;
});

const stateBackground = computed(() => {
return fetch.value.data?.stateBackground?.replace('bg-', '') || 'unknown';
});

const resourceTypeLabel = computed(() => {
if (!fetch.value.data) {
return '';
Expand Down Expand Up @@ -67,7 +71,7 @@ const actionInvoked = () => {
>
<RcStatusIndicator
shape="disc"
:status="fetch.data?.stateBackground || 'unknown'"
:status="stateBackground"
/>
<router-link
:to="props.detailLocation || fetch.data.detailLocation || '#'"
Expand Down
Loading