diff options
author | Phil Hughes <me@iamphill.com> | 2017-05-04 17:57:08 +0300 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2017-05-04 17:57:08 +0300 |
commit | 9904c12746e744c4e271fe454b04a54dfb9b668e (patch) | |
tree | ea12986e382846a6918b1c20703174ad5101179b /app/assets/javascripts/deploy_keys/components | |
parent | 79f40f27fd64b9209e1faa528e658d831e2c7f2f (diff) |
Updated webpack config
Diffstat (limited to 'app/assets/javascripts/deploy_keys/components')
-rw-r--r-- | app/assets/javascripts/deploy_keys/components/app.vue | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/app/assets/javascripts/deploy_keys/components/app.vue b/app/assets/javascripts/deploy_keys/components/app.vue index 2ba5001cf56..a6552125e66 100644 --- a/app/assets/javascripts/deploy_keys/components/app.vue +++ b/app/assets/javascripts/deploy_keys/components/app.vue @@ -32,7 +32,6 @@ methods: { fetchKeys() { this.isLoading = true; - this.store.keys = {}; this.service.getKeys() .then((data) => { @@ -46,9 +45,6 @@ .then(() => this.fetchKeys()) .catch(() => new Flash('Error enabling deploy key')); }, - removeKey(deployKey) { - this.disableKey(deployKey); - }, disableKey(deployKey) { // eslint-disable-next-line no-alert if (confirm('You are going to remove this deploy key. Are you sure?')) { @@ -62,7 +58,7 @@ this.service = new DeployKeysService(this.endpoint); eventHub.$on('enable.key', this.enableKey); - eventHub.$on('remove.key', this.removeKey); + eventHub.$on('remove.key', this.disableKey); eventHub.$on('disable.key', this.disableKey); }, mounted() { |