Disable clone on node and node accessories (#3541)

This commit is contained in:
Vincent Fiduccia 2021-07-28 11:06:31 -07:00
parent b3e71bdf18
commit 72d1318953
No known key found for this signature in database
GPG Key ID: 2B29AD6BB2BB2582
3 changed files with 12 additions and 1 deletions

View File

@ -30,6 +30,10 @@ export default {
return out;
},
canClone() {
return false;
},
openSsh() {
return () => {
this.$dispatch('wm/open', {

View File

@ -383,6 +383,10 @@ export default {
return true;
},
canClone() {
return false;
},
// You need to preload CAPI.MACHINEs to use this
provisionedMachine() {
const namespace = this.metadata?.annotations?.[CAPI_ANNOTATIONS.CLUSTER_NAMESPACE];

View File

@ -85,6 +85,9 @@ export default {
id: this.namespace
}
};
}
},
canClone() {
return false;
},
};