Skip to content

Commit

Permalink
Merge pull request #56 from eva-vashkevich/iss47
Browse files Browse the repository at this point in the history
[FIX] Disabled editing provider as yaml
  • Loading branch information
eva-vashkevich authored May 8, 2024
2 parents 7b6db98 + ddbb0b9 commit 70a75ff
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,7 @@ export default (Vue as VueConstructor<
<CruResource
v-else
ref="providercruresource"
:can-yaml="false"
:mode="mode"
:validation-passed="fvFormIsValid"
:resource="value"
Expand Down
2 changes: 1 addition & 1 deletion pkg/capi/models/cluster.x-k8s.io.cluster.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ export default class CapiCluster extends SteveModel {

return out.filter(action => action.action !== 'goToEdit' && action.action !== 'goToViewConfig');
}
}
}
7 changes: 7 additions & 0 deletions pkg/capi/models/turtles-capi.cattle.io.capiprovider.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import SteveModel from '@shell/plugins/steve/steve-class';

export default class CapiProvider extends SteveModel {
get canEditYaml() {
return false;
}
}

0 comments on commit 70a75ff

Please sign in to comment.