disabled create and add volume button for VMs in Error state (#10859)

Co-authored-by: erik.silva.scclouds <erik.silva@scclouds.com.br>
This commit is contained in:
Erik Böck 2025-05-15 04:36:42 -03:00 committed by GitHub
parent 572fc11a64
commit 7bab40db6f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@
style="width: 100%; margin-bottom: 10px"
@click="showAddVolModal"
:loading="loading"
:disabled="!('createVolume' in $store.getters.apis)">
:disabled="!('createVolume' in $store.getters.apis) || this.vm.state === 'Error'">
<template #icon><plus-outlined /></template> {{ $t('label.action.create.volume.add') }}
</a-button>
<volumes-tab :resource="vm" :loading="loading" />