mirror of https://github.com/rancher/dashboard.git
Merge pull request #3597 from rak-phillip/bugfix/3547-snapshot-action
[master] Disable snapshot button when cluster is not active
This commit is contained in:
commit
a94c3033d2
|
|
@ -286,6 +286,10 @@ export default {
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
isClusterReady() {
|
||||||
|
return this.value.mgmt?.isReady;
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
mounted() {
|
mounted() {
|
||||||
|
|
@ -444,7 +448,12 @@ export default {
|
||||||
:search="false"
|
:search="false"
|
||||||
>
|
>
|
||||||
<template #header-right>
|
<template #header-right>
|
||||||
<AsyncButton mode="snapshot" class="btn role-primary" @click="takeSnapshot" />
|
<AsyncButton
|
||||||
|
mode="snapshot"
|
||||||
|
class="btn role-primary"
|
||||||
|
:disabled="!isClusterReady"
|
||||||
|
@click="takeSnapshot"
|
||||||
|
/>
|
||||||
</template>
|
</template>
|
||||||
</SortableTable>
|
</SortableTable>
|
||||||
</Tab>
|
</Tab>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue