update files

This commit is contained in:
nuintun
2015-11-23 22:23:20 +08:00
parent e1c9c15fc4
commit 84768cea6b
6 changed files with 37 additions and 25 deletions

View File

@@ -46,10 +46,10 @@ module.exports = Vue.component('app-configure', {
this.showPopup = !this.showPopup;
if (!this.showPopup) {
this.name = '';
this.path = '';
this.submitError = '';
this.$broadcast('clean-error');
// clean imput
this.$broadcast('reset-form');
}
},
add: function (){
@@ -62,13 +62,13 @@ module.exports = Vue.component('app-configure', {
this.showPopup = false;
this.configure.projects.push({ name: this.name, path: this.path });
// clean imput
this.name = '';
this.path = '';
this.submitError = '';
// clean imput
this.$broadcast('reset-form');
// send message
this.$dispatch('change-active', this.configure.projects.length - 1);
this.$dispatch('change-active', this.configure.projects.length - 1, true);
this.$dispatch('save-configure');
}
}