Skip to content

Commit

Permalink
fix: disable link to workspace page
Browse files Browse the repository at this point in the history
Signed-off-by: yuda <[email protected]>
  • Loading branch information
yuda110 committed May 8, 2024
1 parent dfd3257 commit 0fc1afa
Showing 1 changed file with 9 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,14 @@ import { useProperRouteLocation } from '@/common/composables/proper-route-locati
import { gray } from '@/styles/colors';
import BudgetDetailInfoAmountPlanningTypePopover from '@/services/cost-explorer/components/BudgetDetailInfoAmountPlanningTypePopover.vue';
import { COST_EXPLORER_ROUTE } from '@/services/cost-explorer/routes/route-constant';
import { useBudgetDetailPageStore } from '@/services/cost-explorer/stores/budget-detail-page-store';
const changeToLabelList = (providerList: string[]): string => providerList.map((provider) => storeState.providers[provider]?.label ?? '').join(', ') || 'All';
const { isAdminMode } = useProperRouteLocation();
const allReferenceStore = useAllReferenceStore();
const { getProperRouteLocation } = useProperRouteLocation();
const budgetPageStore = useBudgetDetailPageStore();
const budgetPageState = budgetPageStore.$state;
Expand Down Expand Up @@ -74,14 +71,15 @@ const state = reactive({
{ resource_type: 'identity.Project' },
);
}
if (isAdminMode.value) {
return ({
name: COST_EXPLORER_ROUTE.COST_ANALYSIS._NAME,
params: {
workspaceId: state.budgetData?.workspace_id,
},
});
}
// HACK: This is a temporary solution. It should be changed to the proper route.
// if (isAdminMode.value) {
// return ({
// name: COST_EXPLORER_ROUTE.COST_ANALYSIS._NAME,
// params: {
// workspaceId: state.budgetData?.workspace_id,
// },
// });
// }
return undefined;
}),
isTextTruncate: undefined as boolean|undefined,
Expand Down

0 comments on commit 0fc1afa

Please sign in to comment.