Skip to content

Commit 55174d5

Browse files
author
Hoang Nguyen
authored
add ref=submit missing in button (#5298)
1 parent 3395a65 commit 55174d5

12 files changed

Lines changed: 14 additions & 11 deletions

ui/src/components/view/DedicateModal.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
:error="domainError" />
3131
<div :span="24" class="action-button">
3232
<a-button @click="closeModal">{{ this.$t('label.cancel') }}</a-button>
33-
<a-button type="primary" @click="handleDedicateForm">{{ this.$t('label.ok') }}</a-button>
33+
<a-button type="primary" ref="submit" @click="handleDedicateForm">{{ this.$t('label.ok') }}</a-button>
3434
</div>
3535
</a-modal>
3636
</template>

ui/src/components/view/ResourceLimitTab.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
v-if="!($route.meta.name === 'domain' && resource.level === 0)"
4545
:loading="formLoading"
4646
type="primary"
47+
ref="submit"
4748
@click="handleSubmit">{{ $t('label.submit') }}</a-button>
4849
</div>
4950
</a-form>

ui/src/views/network/CreateSharedNetworkForm.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -327,6 +327,7 @@
327327
<a-button
328328
:loading="actionLoading"
329329
type="primary"
330+
ref="submit"
330331
@click="handleSubmit">
331332
{{ this.$t('label.ok') }}
332333
</a-button>

ui/src/views/network/CreateVlanIpRange.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@
143143
<a-button
144144
:loading="loading"
145145
type="primary"
146+
ref="submit"
146147
@click="handleSubmit">
147148
{{ this.$t('label.ok') }}
148149
</a-button>

ui/src/views/network/CreateVpc.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@
8484
</a-form>
8585
<div :span="24" class="action-button">
8686
<a-button @click="closeAction">{{ this.$t('label.cancel') }}</a-button>
87-
<a-button :loading="loading" type="primary" @click="handleSubmit">{{ this.$t('label.ok') }}</a-button>
87+
<a-button :loading="loading" ref="submit" type="primary" @click="handleSubmit">{{ this.$t('label.ok') }}</a-button>
8888
</div>
8989
</a-spin>
9090
</div>

ui/src/views/network/FirewallRules.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
<a-input v-model="newRule.icmpcode"></a-input>
4949
</div>
5050
<div class="form__item" style="margin-left: auto;">
51-
<a-button :disabled="!('createFirewallRule' in $store.getters.apis)" type="primary" @click="addRule">{{ $t('label.add') }}</a-button>
51+
<a-button :disabled="!('createFirewallRule' in $store.getters.apis)" type="primary" ref="submit" @click="addRule">{{ $t('label.add') }}</a-button>
5252
</div>
5353
</div>
5454
</div>

ui/src/views/network/PortForwarding.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@
161161
</a-form-item>
162162
</div>
163163

164-
<a-button type="primary" @click="handleAddTag">{{ $t('label.add') }}</a-button>
164+
<a-button type="primary" ref="submit" @click="handleAddTag">{{ $t('label.add') }}</a-button>
165165
</a-form>
166166

167167
<a-divider></a-divider>
@@ -264,7 +264,7 @@
264264
</div>
265265
<div :span="24" class="action-button">
266266
<a-button @click="closeModal">{{ $t('label.cancel') }}</a-button>
267-
<a-button type="primary" @click="addRule">{{ $t('label.ok') }}</a-button>
267+
<a-button type="primary" ref="submit" @click="addRule">{{ $t('label.ok') }}</a-button>
268268
</div>
269269
</a-modal>
270270

ui/src/views/network/VpcTiersTab.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@
218218
</a-alert>
219219
<div :span="24" class="action-button">
220220
<a-button @click="showCreateNetworkModal = false">{{ $t('label.cancel') }}</a-button>
221-
<a-button type="primary" @click="handleAddNetworkSubmit">{{ $t('label.ok') }}</a-button>
221+
<a-button type="primary" ref="submit" @click="handleAddNetworkSubmit">{{ $t('label.ok') }}</a-button>
222222
</div>
223223
</a-form>
224224
</a-spin>
@@ -274,7 +274,7 @@
274274

275275
<div :span="24" class="action-button">
276276
<a-button @click="showAddInternalLB = false">{{ $t('label.cancel') }}</a-button>
277-
<a-button type="primary" @click="handleAddInternalLBSubmit">{{ $t('label.ok') }}</a-button>
277+
<a-button type="primary" ref="submit" @click="handleAddInternalLBSubmit">{{ $t('label.ok') }}</a-button>
278278
</div>
279279
</a-form>
280280
</a-spin>

ui/src/views/network/VpnDetails.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767

6868
<div class="actions">
6969
<a-button @click="() => enableVpn = false">{{ $t('label.cancel') }}</a-button>
70-
<a-button type="primary" @click="handleCreateVpn">{{ $t('label.yes') }}</a-button>
70+
<a-button type="primary" ref="submit" @click="handleCreateVpn">{{ $t('label.yes') }}</a-button>
7171
</div>
7272
</a-modal>
7373

ui/src/views/offering/AddDiskOffering.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@
330330
</a-form>
331331
<div :span="24" class="action-button">
332332
<a-button @click="closeAction">{{ $t('label.cancel') }}</a-button>
333-
<a-button :loading="loading" type="primary" @click="handleSubmit">{{ $t('label.ok') }}</a-button>
333+
<a-button :loading="loading" ref="submit" type="primary" @click="handleSubmit">{{ $t('label.ok') }}</a-button>
334334
</div>
335335
</a-spin>
336336
</div>

0 commit comments

Comments
 (0)