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

Updated webpack config

parent 79f40f27
......@@ -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() {
......
......@@ -123,6 +123,7 @@ var config = {
'boards',
'commit_pipelines',
'cycle_analytics',
'deploy_keys',
'diff_notes',
'environments',
'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