+
+
+
+ {{ option.label }}
+
+
+
+
+
+
+
diff --git a/resources/js/components/MacroPlanningComponent.vue b/resources/js/components/MacroPlanningComponent.vue
index 11f3a98..3a44763 100644
--- a/resources/js/components/MacroPlanningComponent.vue
+++ b/resources/js/components/MacroPlanningComponent.vue
@@ -193,42 +193,21 @@ import Toastify from 'toastify-js'
import axios from 'axios';
export default {
- props: {
- isAdmin: {
- type: Number,
- },
- dbLoadCollection: {
- type: String,
- },
- dbMacroscheduleConfig: {
- type: String,
- },
- dbProjects: {
- type: String,
- },
- dbActivitiesEnum: {
- type: String,
- },
- dbProjectStatusEnum: {
- type: String,
- },
- today: {
- type: String,
- },
- startDay: {
- type: String,
- }
- },
mounted() {
let self = this
window.Toastify = Toastify
- this.projects = JSON.parse(this.dbProjects)
- this.loadCollection = JSON.parse(this.dbLoadCollection)
- this.macroscheduleConfig = JSON.parse(this.dbMacroscheduleConfig)
- this.activitiesEnum = JSON.parse(this.dbActivitiesEnum)
- this.projectStatusEnum = JSON.parse(this.dbProjectStatusEnum)
+
+ let data = JSON.parse(this.$parent.$options.json)
+ this.projects = data.projects
+ this.loadCollection = data.loadCollection
+ this.macroscheduleConfig = data.macroscheduleConfig
+ this.activitiesEnum = data.activitiesEnum
+ this.projectStatusEnum = data.projectStatusEnum
+ this.today = data.today
+ this.startDay = data.startDay
+ this.isAdmin = data.isAdmin
this.$nextTick(this.refreshTooltips)
- this.modale = new bootstrap.Modal(this.$refs.editModal)
+ this.modale = new this.bootstrap.Modal(this.$refs.editModal)
this.$refs.editModal.addEventListener('hide.bs.modal', function (e) {
if(self.modalLoading) {
e.preventDefault()
@@ -238,6 +217,9 @@ export default {
},
data() {
return {
+ isAdmin: false,
+ today: '',
+ startDay: '',
textLimit: 254,
hoverActivityId: null,
error: '',
@@ -544,7 +526,7 @@ export default {
}
this.tooltipTriggerList = [].slice.call(this.$refs.macroschedule.querySelectorAll('[data-bs-toggle="tooltip"]'))
this.tooltipTriggerList.map((tooltipTriggerEl) => {
- return new bootstrap.Tooltip(tooltipTriggerEl, { delay: 500 })
+ return new this.bootstrap.Tooltip(tooltipTriggerEl, { delay: 500 })
})
},
limitLines(e) {
diff --git a/resources/js/components/MarkerLabelSelectComponent.vue b/resources/js/components/MarkerLabelSelectComponent.vue
index 1309daa..1a03756 100644
--- a/resources/js/components/MarkerLabelSelectComponent.vue
+++ b/resources/js/components/MarkerLabelSelectComponent.vue
@@ -8,8 +8,10 @@
-@endpush
diff --git a/resources/views/layout/app.blade.php b/resources/views/layout/app.blade.php
index f096b05..329ed82 100644
--- a/resources/views/layout/app.blade.php
+++ b/resources/views/layout/app.blade.php
@@ -17,12 +17,10 @@