diff --git a/src/Bundle/ChillMainBundle/Resources/public/vuejs/_components/OnTheFly.vue b/src/Bundle/ChillMainBundle/Resources/public/vuejs/_components/OnTheFly.vue index 9e5efd86c..43cd0c686 100644 --- a/src/Bundle/ChillMainBundle/Resources/public/vuejs/_components/OnTheFly.vue +++ b/src/Bundle/ChillMainBundle/Resources/public/vuejs/_components/OnTheFly.vue @@ -134,6 +134,8 @@ export default { }, methods: { openModal() { + console.log('## OPEN ON THE FLY MODAL'); + console.log('## type:', this.type, ', action:', this.action); this.modal.showModal = true; this.$nextTick(function() { //this.$refs.search.focus(); @@ -173,11 +175,11 @@ export default { this.modal.showModal = false; }, - goToLocation(id, type){ - if(type == 'person'){ - window.location = `../../person/${id}/general` - } else if(type == 'thirdparty') { - window.location = `../../thirdparty/thirdparty/${id}/show` + goToLocation(id, type) { + if (type == 'person') { + window.location = `../../person/${id}/general`; + } else if (type == 'thirdparty') { + window.location = `../../thirdparty/thirdparty/${id}/show`; } } } diff --git a/src/Bundle/ChillMainBundle/Resources/public/vuejs/_components/OnTheFly/Create.vue b/src/Bundle/ChillMainBundle/Resources/public/vuejs/_components/OnTheFly/Create.vue index 7644043fd..c5d949c4e 100644 --- a/src/Bundle/ChillMainBundle/Resources/public/vuejs/_components/OnTheFly/Create.vue +++ b/src/Bundle/ChillMainBundle/Resources/public/vuejs/_components/OnTheFly/Create.vue @@ -56,6 +56,7 @@ export default { radioType: { set(type) { this.type = type; + console.log('## type:', type, ', action:', this.action); }, get() { return this.type; diff --git a/src/Bundle/ChillPersonBundle/Resources/public/vuejs/_components/OnTheFly/Person.vue b/src/Bundle/ChillPersonBundle/Resources/public/vuejs/_components/OnTheFly/Person.vue index 5261b2c81..bf559fd41 100644 --- a/src/Bundle/ChillPersonBundle/Resources/public/vuejs/_components/OnTheFly/Person.vue +++ b/src/Bundle/ChillPersonBundle/Resources/public/vuejs/_components/OnTheFly/Person.vue @@ -40,7 +40,7 @@ - +