ui: Remove double footer (#5437)

This commit is contained in:
davidjumani 2021-09-13 14:32:21 +05:30 committed by GitHub
parent 2a243b8b69
commit 8ca3e4a915
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 8 deletions

View File

@ -320,9 +320,7 @@
v-model="addVmModalVisible"
class="vm-modal"
width="60vw"
:okButtonProps="{ props:
{disabled: newRule.virtualmachineid === [] } }"
@cancel="closeModal"
:footer="null"
v-ctrl-enter="handleAddNewRule"
>
<div>
@ -402,7 +400,7 @@
<div :span="24" class="action-button">
<a-button @click="closeModal">{{ $t('label.cancel') }}</a-button>
<a-button type="primary" @click="handleAddNewRule">{{ $t('label.ok') }}</a-button>
<a-button :disabled="newRule.virtualmachineid === []" type="primary" @click="handleAddNewRule">{{ $t('label.ok') }}</a-button>
</div>
</a-modal>

View File

@ -186,9 +186,7 @@
v-model="addVmModalVisible"
class="vm-modal"
width="60vw"
:okButtonProps="{ props:
{disabled: newRule.virtualmachineid === null } }"
@cancel="closeModal"
:footer="null"
v-ctrl-enter="addRule"
>
<div>
@ -266,7 +264,7 @@
</div>
<div :span="24" class="action-button">
<a-button @click="closeModal">{{ $t('label.cancel') }}</a-button>
<a-button type="primary" ref="submit" @click="addRule">{{ $t('label.ok') }}</a-button>
<a-button type="primary" ref="submit" :disabled="newRule.virtualmachineid === null" @click="addRule">{{ $t('label.ok') }}</a-button>
</div>
</a-modal>