diff options
author | Phil Hughes <me@iamphill.com> | 2017-12-07 11:48:17 +0300 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2017-12-07 15:57:36 +0300 |
commit | 307e024c12b34cac66bbd13052d936a443398564 (patch) | |
tree | 70a437877651395ec95ff65716e44817ce4170e3 /app/assets/javascripts/deploy_keys/components/action_btn.vue | |
parent | 28c983db2353d7428f44dad2f8495e1028e360d1 (diff) |
Fixed remove deploy key loading icon not being removed after canceling
Closes #37595
Diffstat (limited to 'app/assets/javascripts/deploy_keys/components/action_btn.vue')
-rw-r--r-- | app/assets/javascripts/deploy_keys/components/action_btn.vue | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/app/assets/javascripts/deploy_keys/components/action_btn.vue b/app/assets/javascripts/deploy_keys/components/action_btn.vue index 3f993213dd0..f9f2f9bf693 100644 --- a/app/assets/javascripts/deploy_keys/components/action_btn.vue +++ b/app/assets/javascripts/deploy_keys/components/action_btn.vue @@ -32,7 +32,9 @@ doAction() { this.isLoading = true; - eventHub.$emit(`${this.type}.key`, this.deployKey); + eventHub.$emit(`${this.type}.key`, this.deployKey, () => { + this.isLoading = false; + }); }, }, computed: { @@ -50,6 +52,9 @@ :disabled="isLoading" @click="doAction"> {{ text }} - <loading-icon v-if="isLoading" /> + <loading-icon + v-if="isLoading" + :inline="true" + /> </button> </template> |