diff --git a/src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourse/App.vue b/src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourse/App.vue
index fba5a2781..480b882dc 100644
--- a/src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourse/App.vue
+++ b/src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourse/App.vue
@@ -19,7 +19,7 @@ export default {
Requestor
},
computed: mapState([
- 'accompanying_course'
+ 'accompanyingCourse'
])
};
diff --git a/src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourse/components/AccompanyingCourse.vue b/src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourse/components/AccompanyingCourse.vue
index 4a5ad0ab1..be3014ddb 100644
--- a/src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourse/components/AccompanyingCourse.vue
+++ b/src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourse/components/AccompanyingCourse.vue
@@ -3,15 +3,15 @@
{{ $t('course.title') }}
- {{ $t('course.id') }}
- - {{ accompanying_course.id }}
+ - {{ accompanyingCourse.id }}
- {{ $t('course.opening_date') }}
- - {{ $d(accompanying_course.openingDate.datetime, 'short') }}
+ - {{ $d(accompanyingCourse.openingDate.datetime, 'short') }}
- {{ $t('course.closing_date') }}
- - {{ $d(accompanying_course.closingDate.datetime, 'short') }}
+ - {{ $d(accompanyingCourse.closingDate.datetime, 'short') }}
- {{ $t('course.remark') }}
- - {{ accompanying_course.remark }}
+ - {{ accompanyingCourse.remark }}
- {{ $t('course.closing_motive') }}
- - {{ accompanying_course.closing_motive }}
+ - {{ accompanyingCourse.closing_motive }}
@@ -20,8 +20,8 @@
export default {
name: 'AccompanyingCourse',
computed: {
- accompanying_course() {
- return this.$store.state.accompanying_course
+ accompanyingCourse() {
+ return this.$store.state.accompanyingCourse
}
}
}
diff --git a/src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourse/components/PersonsAssociated.vue b/src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourse/components/PersonsAssociated.vue
index f330acde6..631534fcb 100644
--- a/src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourse/components/PersonsAssociated.vue
+++ b/src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourse/components/PersonsAssociated.vue
@@ -45,8 +45,8 @@ export default {
AddPersons
},
computed: mapState({
- participations: state => state.accompanying_course.participations,
- counter: state => state.accompanying_course.participations.length
+ participations: state => state.accompanyingCourse.participations,
+ counter: state => state.accompanyingCourse.participations.length
}),
methods: {
removeParticipation(item) {
diff --git a/src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourse/components/Requestor.vue b/src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourse/components/Requestor.vue
index 58a7c8ffd..e481fa91d 100644
--- a/src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourse/components/Requestor.vue
+++ b/src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourse/components/Requestor.vue
@@ -1,8 +1,8 @@
{{ $t('requestor.title') }}
- {{ accompanying_course.id }}
- {{ accompanying_course.remark }}
+ {{ accompanyingCourse.id }}
+ {{ accompanyingCourse.remark }}
@@ -78,8 +78,8 @@ export default {
}
},
computed: {
- accompanying_course() {
- return this.$store.state.accompanying_course
+ accompanyingCourse() {
+ return this.$store.state.accompanyingCourse
}
}
}
diff --git a/src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourse/index.js b/src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourse/index.js
index 3cd93b08e..66b6d6683 100644
--- a/src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourse/index.js
+++ b/src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourse/index.js
@@ -8,7 +8,7 @@ import App from './App.vue';
initPromise.then(store => {
//console.log('store in create_store', store);
- //console.log('store accompanyingCourse', store.state.accompanying_course);
+ //console.log('store accompanyingCourse', store.state.accompanyingCourse);
const i18n = _createI18n(appMessages);
diff --git a/src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourse/store/index.js b/src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourse/store/index.js
index 77a27370a..02002e5ca 100644
--- a/src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourse/store/index.js
+++ b/src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourse/store/index.js
@@ -13,10 +13,10 @@ let initPromise = getAccompanyingCourse(id)
const store = createStore({
strict: debug,
modules: {
- addPersons: addPersons
+ addPersons
},
state: {
- accompanying_course: accompanying_course,
+ accompanyingCourse: accompanying_course,
errorMsg: []
},
getters: {
@@ -24,20 +24,20 @@ let initPromise = getAccompanyingCourse(id)
mutations: {
removeParticipation(state, item) {
//console.log('mutation: remove item', item.id);
- state.accompanying_course.participations = state.accompanying_course.participations.filter(participation => participation !== item);
+ state.accompanyingCourse.participations = state.accompanyingCourse.participations.filter(participation => participation !== item);
},
closeParticipation(state, { participation, payload }) {
console.log('### mutation: close item', { participation, payload });
// temporaire, le temps que le backend ajoute la enddate
participation.endDate = { datetime: "2021-05-06T10:49:00+0200" };
// trouve dans le state le payload et le supprime du state
- state.accompanying_course.participations = state.accompanying_course.participations.filter(participation => participation !== payload);
+ state.accompanyingCourse.participations = state.accompanyingCourse.participations.filter(participation => participation !== payload);
// pousse la participation
- state.accompanying_course.participations.push(participation);
+ state.accompanyingCourse.participations.push(participation);
},
addParticipation(state, participation) {
//console.log('### mutation: add participation', participation);
- state.accompanying_course.participations.push(participation);
+ state.accompanyingCourse.participations.push(participation);
},
},
actions: {
@@ -71,7 +71,7 @@ let initPromise = getAccompanyingCourse(id)
},
}
});
- //console.log('store object', store.state.accompanying_course.id);
+ //console.log('store object', store.state.accompanyingCourse.id);
resolve(store);
}));