summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/assets/javascripts/deploy_keys/components/app.vue6
-rw-r--r--config/webpack.config.js1
2 files changed, 2 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() {
diff --git a/config/webpack.config.js b/config/webpack.config.js
index 742d22d0c1f..239bb5ec436 100644
--- a/config/webpack.config.js
+++ b/config/webpack.config.js
@@ -123,6 +123,7 @@ var config = {
'boards',
'commit_pipelines',
'cycle_analytics',
+ 'deploy_keys',
'diff_notes',
'environments',
'environments_folder',