Skip to content

Commit 3e8dbc0

Browse files
author
Hoang Nguyen
authored
ui: add cancel button missing on dialog (#4763)
1 parent 6428780 commit 3e8dbc0

1 file changed

Lines changed: 15 additions & 3 deletions

File tree

ui/src/views/compute/AssignInstance.vue

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,14 @@
7777
</a-select>
7878
</div>
7979

80-
<a-button type="primary" class="submit-btn" @click="submitData">
81-
{{ $t('label.submit') }}
82-
</a-button>
80+
<div class="submit-btn">
81+
<a-button @click="closeAction">
82+
{{ $t('label.cancel') }}
83+
</a-button>
84+
<a-button type="primary" @click="submitData">
85+
{{ $t('label.submit') }}
86+
</a-button>
87+
</div>
8388

8489
</div>
8590

@@ -183,6 +188,9 @@ export default {
183188
this.selectedAccount = null
184189
this.fetchNetworks()
185190
},
191+
closeAction () {
192+
this.$emit('close-action')
193+
},
186194
submitData () {
187195
let variableKey = ''
188196
let variableValue = ''
@@ -255,6 +263,10 @@ export default {
255263
.submit-btn {
256264
margin-top: 10px;
257265
align-self: flex-end;
266+
267+
button {
268+
margin-left: 10px;
269+
}
258270
}
259271
260272
.required {

0 commit comments

Comments
 (0)