Skip to content

Commit 7bab40d

Browse files
disabled create and add volume button for VMs in Error state (#10859)
Co-authored-by: erik.silva.scclouds <[email protected]>
1 parent 572fc11 commit 7bab40d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ui/src/views/compute/InstanceTab.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
style="width: 100%; margin-bottom: 10px"
4040
@click="showAddVolModal"
4141
:loading="loading"
42-
:disabled="!('createVolume' in $store.getters.apis)">
42+
:disabled="!('createVolume' in $store.getters.apis) || this.vm.state === 'Error'">
4343
<template #icon><plus-outlined /></template> {{ $t('label.action.create.volume.add') }}
4444
</a-button>
4545
<volumes-tab :resource="vm" :loading="loading" />

0 commit comments

Comments
 (0)