Skip to content

Commit 8676810

Browse files
erikbockserik-bock-silva
authored andcommitted
disabled create and add volume button for VMs in Error state (apache#10859)
Co-authored-by: erik.silva.scclouds <[email protected]>
1 parent 5163488 commit 8676810

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

0 commit comments

Comments
 (0)