mirror of
https://github.com/nuintun/command-manager.git
synced 2025-10-19 17:17:33 +08:00
update files
This commit is contained in:
@@ -48,8 +48,8 @@ module.exports = Vue.component('app-configure', {
|
||||
if (!this.showPopup) {
|
||||
this.submitError = '';
|
||||
|
||||
// clean imput
|
||||
this.$broadcast('reset-form');
|
||||
// clean error
|
||||
this.$broadcast('reset-error');
|
||||
}
|
||||
},
|
||||
add: function (){
|
||||
@@ -64,8 +64,8 @@ module.exports = Vue.component('app-configure', {
|
||||
|
||||
this.submitError = '';
|
||||
|
||||
// clean imput
|
||||
this.$broadcast('reset-form');
|
||||
// clean error
|
||||
this.$broadcast('reset-error');
|
||||
|
||||
// send message
|
||||
this.$dispatch('change-active', this.configure.projects.length - 1, true);
|
||||
|
@@ -91,9 +91,7 @@ module.exports = Vue.component('dynamic-item', {
|
||||
}
|
||||
},
|
||||
events: {
|
||||
'reset-form': function (){
|
||||
this.name = '';
|
||||
this.value = '';
|
||||
'reset-error': function (){
|
||||
this.nameError = '';
|
||||
this.valueError = '';
|
||||
}
|
||||
|
@@ -38,9 +38,7 @@ module.exports = Vue.component('project-base', {
|
||||
}
|
||||
},
|
||||
events: {
|
||||
'reset-form': function (){
|
||||
this.name = '';
|
||||
this.path = '';
|
||||
'reset-error': function (){
|
||||
this.nameError = '';
|
||||
this.pathError = '';
|
||||
},
|
||||
|
@@ -70,16 +70,18 @@ module.exports = Vue.component('project-configure', {
|
||||
cancel: function (){
|
||||
this.show = false;
|
||||
this.submitError = '';
|
||||
|
||||
this.$broadcast('reset-form');
|
||||
|
||||
this.projectClone = util.clone(this.project);
|
||||
|
||||
// clean error
|
||||
this.$broadcast('reset-error');
|
||||
}
|
||||
},
|
||||
events: {
|
||||
'configure-refresh': function (){
|
||||
this.submitError = '';
|
||||
this.$broadcast('reset-form');
|
||||
|
||||
// clean error
|
||||
this.$broadcast('reset-error');
|
||||
}
|
||||
},
|
||||
created: function (){
|
||||
|
Reference in New Issue
Block a user