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:
Vincent Fiduccia 2021-08-04 01:29:53 -07:00 committed by GitHub
commit a94c3033d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 1 deletions

View File

@ -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>