Commit 9904c127 authored by Phil Hughes's avatar Phil Hughes

Updated webpack config

parent 79f40f27
...@@ -32,7 +32,6 @@ ...@@ -32,7 +32,6 @@
methods: { methods: {
fetchKeys() { fetchKeys() {
this.isLoading = true; this.isLoading = true;
this.store.keys = {};
this.service.getKeys() this.service.getKeys()
.then((data) => { .then((data) => {
...@@ -46,9 +45,6 @@ ...@@ -46,9 +45,6 @@
.then(() => this.fetchKeys()) .then(() => this.fetchKeys())
.catch(() => new Flash('Error enabling deploy key')); .catch(() => new Flash('Error enabling deploy key'));
}, },
removeKey(deployKey) {
this.disableKey(deployKey);
},
disableKey(deployKey) { disableKey(deployKey) {
// eslint-disable-next-line no-alert // eslint-disable-next-line no-alert
if (confirm('You are going to remove this deploy key. Are you sure?')) { if (confirm('You are going to remove this deploy key. Are you sure?')) {
...@@ -62,7 +58,7 @@ ...@@ -62,7 +58,7 @@
this.service = new DeployKeysService(this.endpoint); this.service = new DeployKeysService(this.endpoint);
eventHub.$on('enable.key', this.enableKey); eventHub.$on('enable.key', this.enableKey);
eventHub.$on('remove.key', this.removeKey); eventHub.$on('remove.key', this.disableKey);
eventHub.$on('disable.key', this.disableKey); eventHub.$on('disable.key', this.disableKey);
}, },
mounted() { mounted() {
......
...@@ -123,6 +123,7 @@ var config = { ...@@ -123,6 +123,7 @@ var config = {
'boards', 'boards',
'commit_pipelines', 'commit_pipelines',
'cycle_analytics', 'cycle_analytics',
'deploy_keys',
'diff_notes', 'diff_notes',
'environments', 'environments',
'environments_folder', 'environments_folder',
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment