mirror of https://github.com/rancher/dashboard.git
Use CAPI cluster as product trigger
This commit is contained in:
parent
7a09df35b7
commit
ab4ee15cb1
|
|
@ -13,7 +13,7 @@ export function init(store) {
|
|||
} = DSL(store, NAME);
|
||||
|
||||
product({
|
||||
ifHaveType: CAPI.RKE_CLUSTER,
|
||||
ifHaveType: CAPI.CAPI_CLUSTER,
|
||||
inStore: 'management',
|
||||
icon: 'globe',
|
||||
weight: -1,
|
||||
|
|
@ -22,7 +22,7 @@ export function init(store) {
|
|||
showClusterSwitcher: false,
|
||||
});
|
||||
|
||||
configureType(CAPI.RKE_CLUSTER, {
|
||||
configureType(CAPI.CAPI_CLUSTER, {
|
||||
extraListAction: {
|
||||
query: { [REGISTER]: _FLAGGED },
|
||||
labelKey: 'generic.register',
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ if [[ "${DIR}" == "master" ]]; then
|
|||
DIR="latest"
|
||||
fi
|
||||
|
||||
BASE=https://releases.rancher.com/dashboard/${DIR}
|
||||
BASE=${BASE:-https://releases.rancher.com/dashboard/${DIR}}
|
||||
|
||||
echo "Building for ${BASE}..."
|
||||
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@
|
|||
// ifHaveGroup, -- Show this product only if the given group exists in the store [inStore]
|
||||
// ifHaveType, -- Show this product only if the given type exists in the store [inStore]
|
||||
// inStore, -- Which store to look at for if* above and the left-nav, defaults to "cluster"
|
||||
// public, -- If true, show to all users. If false, only show when the Devleoper Tools pref is on (default true)
|
||||
// public, -- If true, show to all users. If false, only show when the Developer Tools pref is on (default true)
|
||||
// })
|
||||
//
|
||||
// externalLink(stringOrFn) The product has an external page (function gets context object
|
||||
|
|
|
|||
Loading…
Reference in New Issue