diff --git a/pages/c/_cluster/auth/roles/index.vue b/pages/c/_cluster/auth/roles/index.vue index 2b5104aa85..0474f994e0 100644 --- a/pages/c/_cluster/auth/roles/index.vue +++ b/pages/c/_cluster/auth/roles/index.vue @@ -6,6 +6,7 @@ import ResourceTable from '@/components/ResourceTable'; import Loading from '@/components/Loading'; import { SUBTYPE_MAPPING } from '@/models/management.cattle.io.roletemplate'; import { NAME } from '@/config/product/auth'; +import { BLANK_CLUSTER } from '@/store'; const GLOBAL = SUBTYPE_MAPPING.GLOBAL.key; const CLUSTER = SUBTYPE_MAPPING.CLUSTER.key; @@ -14,14 +15,14 @@ const PROJECT = SUBTYPE_MAPPING.NAMESPACE.key; const createGlobalRole = { name: `c-cluster-${ NAME }-roles-resource-create`, params: { - cluster: 'local', + cluster: BLANK_CLUSTER, resource: MANAGEMENT.GLOBAL_ROLE, } }; const createRoleTemplate = { name: `c-cluster-${ NAME }-roles-resource-create`, params: { - cluster: 'local', + cluster: BLANK_CLUSTER, resource: MANAGEMENT.ROLE_TEMPLATE, } };