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