Updated webpack config

This commit is contained in:
Phil Hughes 2017-05-04 15:57:08 +01:00
parent 79f40f27fd
commit 9904c12746
2 changed files with 2 additions and 5 deletions

View file

@ -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() {

View file

@ -123,6 +123,7 @@ var config = {
'boards',
'commit_pipelines',
'cycle_analytics',
'deploy_keys',
'diff_notes',
'environments',
'environments_folder',