diff --git a/pkg/capi/models/cluster.x-k8s.io.cluster.js b/pkg/capi/models/cluster.x-k8s.io.cluster.js new file mode 100644 index 0000000..dca88b5 --- /dev/null +++ b/pkg/capi/models/cluster.x-k8s.io.cluster.js @@ -0,0 +1,27 @@ +import SteveModel from '@shell/plugins/steve/steve-class'; +import { + _YAML, + AS, +} from '@shell/config/query-params'; + +export default class CapiCluster extends SteveModel { + get canEditYaml() { + return false; + } + + get canUpdate() { + return false; + } + + get detailLocation() { + const location = super._detailLocation; + + return { ...location, query: { [AS]: _YAML } }; + } + + get _availableActions() { + const out = super._availableActions; + + return out.filter(action => action.action !== 'goToEdit' && action.action !== 'goToViewConfig'); + } +} \ No newline at end of file