mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-21 07:03:49 +00:00
bind options and key inside AddPersons component (wip)
This commit is contained in:
@@ -72,7 +72,7 @@ import PersonSuggestion from 'ChillPersonAssets/vuejs/_components/PersonSuggesti
|
||||
|
||||
export default {
|
||||
name: 'AddPersons',
|
||||
props: ['buttonTitle'],
|
||||
props: ['buttonTitle', 'options'],
|
||||
components: {
|
||||
Modal,
|
||||
PersonSuggestion,
|
||||
@@ -83,7 +83,6 @@ export default {
|
||||
showModal: false,
|
||||
modalDialogClass: "modal-dialog-scrollable modal-xl"
|
||||
},
|
||||
//button: this.buttonTitle
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
@@ -91,8 +90,8 @@ export default {
|
||||
addPersons: state => state.addPersons
|
||||
}),
|
||||
query: {
|
||||
set(query) {
|
||||
this.$store.dispatch('setQuery', { query });
|
||||
set(query, options) {
|
||||
this.$store.dispatch('setQuery', { query, options });
|
||||
},
|
||||
get() {
|
||||
return this.addPersons.query;
|
||||
@@ -112,10 +111,14 @@ export default {
|
||||
},
|
||||
selectedAndSuggested() {
|
||||
return this.$store.getters.selectedAndSuggested;
|
||||
},
|
||||
options() {
|
||||
return this.options;
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
openModal() {
|
||||
console.log('options 1', this.options);
|
||||
this.modal.showModal = true;
|
||||
this.$nextTick(function() {
|
||||
this.$refs.search.focus();
|
||||
|
Reference in New Issue
Block a user