mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
Add Methods commitStore() for publisherId
This commit is contained in:
parent
2bb11230f6
commit
09cdd00c82
@ -139,7 +139,8 @@
|
||||
<b-form-input
|
||||
type="text"
|
||||
placeholder="Publisher ID"
|
||||
v-model="$store.state.publisherId"
|
||||
v-model="publisherId"
|
||||
@input="commitStore(publisherId)"
|
||||
></b-form-input>
|
||||
</b-input-group>
|
||||
<div
|
||||
@ -219,6 +220,7 @@ export default {
|
||||
showError: false,
|
||||
messageError: '',
|
||||
register: true,
|
||||
publisherId: this.$store.state.publisherId,
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
@ -231,6 +233,10 @@ export default {
|
||||
getValidationState({ dirty, validated, valid = null }) {
|
||||
return dirty || validated ? valid : null
|
||||
},
|
||||
commitStore(val) {
|
||||
console.log('commitStore', val)
|
||||
this.$store.commit('publisherId', val)
|
||||
},
|
||||
async onSubmit() {
|
||||
this.$apollo
|
||||
.mutate({
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user