Use CAPI cluster as product trigger

This commit is contained in:
Vincent Fiduccia 2021-01-13 13:39:34 -07:00
parent 7a09df35b7
commit ab4ee15cb1
No known key found for this signature in database
GPG Key ID: 2B29AD6BB2BB2582
3 changed files with 4 additions and 4 deletions

View File

@ -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',

View File

@ -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}..."

View File

@ -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