Skip to content
Snippets Groups Projects
Commit 1794a07e authored by Marcel Nellesen's avatar Marcel Nellesen
Browse files

Merge branch 'Hotfix/760-projectEdit' into 'Sprint/2020-06'

Fix: multiselect fields enable button

See merge request coscine/vue/project-creation!33
parents 4f49c560 de022c52
No related branches found
No related tags found
2 merge requests!33Fix: multiselect fields enable button,!32Sprint/2020-06
{ {
"name": "@coscine/project-creation", "name": "@coscine/project-creation",
"version": "1.5.1", "version": "1.5.2",
"lockfileVersion": 1, "lockfileVersion": 1,
"requires": true, "requires": true,
"dependencies": { "dependencies": {
......
...@@ -368,6 +368,23 @@ export default Vue.extend({ ...@@ -368,6 +368,23 @@ export default Vue.extend({
default: redirectToProject, default: redirectToProject,
}, },
}, },
watch: {
'form.Discipline': function(newVal, oldVal) {
if(oldVal.length > 0) {
this.$v.form!.Discipline!.$touch()
}
},
'form.Institute': function(newVal, oldVal) {
if(oldVal.length > 0) {
this.$v.form!.Institute!.$touch()
}
},
'form.Keywords': function(newVal, oldVal) {
if(oldVal.length > 0) {
this.$v.form!.Keywords!.$touch()
}
}
},
methods: { methods: {
addTag(newTag: any) { addTag(newTag: any) {
this.form.Keywords.push(newTag); this.form.Keywords.push(newTag);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment