Skip to content

Commit

Permalink
fix ember routing for kontainer driver clusters that are not EKS AKS …
Browse files Browse the repository at this point in the history
…nor GKE (#12588)
  • Loading branch information
mantis-toboggan-md authored Nov 12, 2024
1 parent 9184d0c commit 67da30f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion shell/edit/provisioning.cattle.io.cluster/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -211,8 +211,9 @@ export default {
emberLink() {
if (this.value) {
// set subtype if editing EKS/GKE/AKS cluster -- this ensures that the component provided by extension is loaded instead of iframing old ember ui
if (this.value.provisioner) {
const matchingSubtype = this.subTypes.find((st) => st.id.toLowerCase() === this.value.provisioner.toLowerCase() || DRIVER_TO_IMPORT[st.id.toLowerCase()] === this.value.provisioner.toLowerCase());
const matchingSubtype = this.subTypes.find((st) => DRIVER_TO_IMPORT[st.id.toLowerCase()] === this.value.provisioner.toLowerCase());
if (matchingSubtype) {
this.selectType(matchingSubtype.id, false);
Expand Down

0 comments on commit 67da30f

Please sign in to comment.