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;
|
||||
},
|
||||
|
||||
isClusterReady() {
|
||||
return this.value.mgmt?.isReady;
|
||||
}
|
||||
},
|
||||
|
||||
mounted() {
|
||||
|
|
@ -444,7 +448,12 @@ export default {
|
|||
:search="false"
|
||||
>
|
||||
<template #header-right>
|
||||
<AsyncButton mode="snapshot" class="btn role-primary" @click="takeSnapshot" />
|
||||
<AsyncButton
|
||||
mode="snapshot"
|
||||
class="btn role-primary"
|
||||
:disabled="!isClusterReady"
|
||||
@click="takeSnapshot"
|
||||
/>
|
||||
</template>
|
||||
</SortableTable>
|
||||
</Tab>
|
||||
|
|
|
|||
Loading…
Reference in New Issue