Skip to content

Commit c475549

Browse files
authored
ui: fix tags for security group rules (#7424)
Fixes #7412 Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
1 parent 83fd75f commit c475549

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

ui/src/views/network/IngressEgressRuleConfigure.vue

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -136,11 +136,12 @@
136136
:closable="true"
137137
:afterClose="closeModal"
138138
:maskClosable="false"
139+
class="tags-modal"
139140
@cancel="tagsModalVisible = false">
140141
<a-spin v-if="tagsLoading"></a-spin>
141142

142143
<div v-else v-ctrl-enter="handleAddTag">
143-
<a-form :ref="formRef" :model="form" :rules="rules" class="add-tags">
144+
<a-form :ref="formRef" :model="form" :rules="formRules" class="add-tags">
144145
<div class="add-tags__input">
145146
<p class="add-tags__label">{{ $t('label.key') }}</p>
146147
<a-form-item ref="key" name="key">
@@ -155,7 +156,7 @@
155156
<a-input v-model:value="form.value" />
156157
</a-form-item>
157158
</div>
158-
<a-button type="primary">{{ $t('label.add') }}</a-button>
159+
<a-button :disabled="!('createTags' in $store.getters.apis)" type="primary" ref="submit" @click="handleAddTag">{{ $t('label.add') }}</a-button>
159160
</a-form>
160161

161162
<a-divider style="margin-top: 0;" />
@@ -278,7 +279,7 @@ export default {
278279
initForm () {
279280
this.formRef = ref()
280281
this.form = reactive({})
281-
this.rules = reactive({
282+
this.formRules = reactive({
282283
key: [{ required: true, message: this.$t('message.specify.tag.key') }],
283284
value: [{ required: true, message: this.$t('message.specify.tag.value') }]
284285
})

0 commit comments

Comments
 (0)