comment all console.log in AccompanyingCourse component

This commit is contained in:
Mathieu Jaumotte 2021-08-17 18:32:43 +02:00
parent 76eea2a4eb
commit b87046dcd6
7 changed files with 21 additions and 21 deletions

View File

@ -52,7 +52,7 @@ export default {
}, },
methods: { methods: {
assignAddress() { assignAddress() {
console.log('assignAddress id', this.person.current_household_address); //console.log('assignAddress id', this.person.current_household_address);
let payload = { let payload = {
entity: this.context.entity.type, entity: this.context.entity.type,
entityId: this.context.entity.id, entityId: this.context.entity.id,

View File

@ -81,11 +81,11 @@ export default {
}, },
methods: { methods: {
submitform() { submitform() {
console.log('submit'); //console.log('submit');
this.$store.dispatch('postFirstComment', this.formdata); this.$store.dispatch('postFirstComment', this.formdata);
}, },
removeComment() { removeComment() {
console.log('remove'); //console.log('remove');
this.$store.dispatch('postFirstComment', {}); this.$store.dispatch('postFirstComment', {});
} }
} }

View File

@ -65,9 +65,9 @@ export default {
}, },
methods: { methods: {
confirmCourse() { confirmCourse() {
console.log('@@ CLICK confirmCourse'); //console.log('@@ CLICK confirmCourse');
this.$store.dispatch('confirmAccompanyingCourse'); this.$store.dispatch('confirmAccompanyingCourse');
console.log('confirm last'); //console.log('confirm last');
} }
} }
} }

View File

@ -117,7 +117,7 @@ export default {
this.$store.commit('setAddressContext', context); this.$store.commit('setAddressContext', context);
}, },
removeAddress() { removeAddress() {
console.log('remove address'); //console.log('remove address');
let payload = { let payload = {
entity: this.context.entity.type, entity: this.context.entity.type,
entityId: this.context.entity.id, entityId: this.context.entity.id,
@ -129,7 +129,7 @@ export default {
return this.$refs.addAddress.errorMsg; return this.$refs.addAddress.errorMsg;
}, },
submitTemporaryAddress() { submitTemporaryAddress() {
console.log('@@@ click on Submit Temporary Address Button'); //console.log('@@@ click on Submit Temporary Address Button');
let payload = this.$refs.addAddress.submitNewAddress(); let payload = this.$refs.addAddress.submitNewAddress();
payload['locationStatusTo'] = 'address'; // <== temporary, not none, not person payload['locationStatusTo'] = 'address'; // <== temporary, not none, not person
this.$store.dispatch('updateLocation', payload); this.$store.dispatch('updateLocation', payload);
@ -139,9 +139,9 @@ export default {
mounted() { mounted() {
this.initAddressContext(); this.initAddressContext();
console.log('ac.locationStatus', this.accompanyingCourse.locationStatus); //console.log('ac.locationStatus', this.accompanyingCourse.locationStatus);
console.log('ac.location (temporary location)', this.accompanyingCourse.location); //console.log('ac.location (temporary location)', this.accompanyingCourse.location);
console.log('ac.personLocation', this.accompanyingCourse.personLocation); //console.log('ac.personLocation', this.accompanyingCourse.personLocation);
} }
} }
</script> </script>

View File

@ -69,15 +69,15 @@ export default {
}), }),
methods: { methods: {
removeParticipation(item) { removeParticipation(item) {
console.log('@@ CLICK remove participation: item', item); //console.log('@@ CLICK remove participation: item', item);
this.$store.dispatch('removeParticipation', item); this.$store.dispatch('removeParticipation', item);
}, },
closeParticipation(item) { closeParticipation(item) {
console.log('@@ CLICK close participation: item', item); //console.log('@@ CLICK close participation: item', item);
this.$store.dispatch('closeParticipation', item); this.$store.dispatch('closeParticipation', item);
}, },
addNewPersons({ selected, modal }) { addNewPersons({ selected, modal }) {
console.log('@@@ CLICK button addNewPersons', selected); //console.log('@@@ CLICK button addNewPersons', selected);
selected.forEach(function(item) { selected.forEach(function(item) {
this.$store.dispatch('addParticipation', item); this.$store.dispatch('addParticipation', item);
}, this }, this

View File

@ -68,11 +68,11 @@ export default {
}), }),
methods: { methods: {
removeResource(item) { removeResource(item) {
console.log('@@ CLICK remove resource: item', item); //console.log('@@ CLICK remove resource: item', item);
this.$store.dispatch('removeResource', item); this.$store.dispatch('removeResource', item);
}, },
addNewPersons({ selected, modal }) { addNewPersons({ selected, modal }) {
console.log('@@@ CLICK button addNewPersons', selected); //console.log('@@@ CLICK button addNewPersons', selected);
selected.forEach(function(item) { selected.forEach(function(item) {
this.$store.dispatch('addResource', item); this.$store.dispatch('addResource', item);
}, this }, this

View File

@ -100,13 +100,13 @@ let initPromise = getAccompanyingCourse(id)
state.addressContext = context; state.addressContext = context;
}, },
updateLocation(state, r) { updateLocation(state, r) {
console.log('### mutation: set location attributes', r); //console.log('### mutation: set location attributes', r);
state.accompanyingCourse.location = r.location; state.accompanyingCourse.location = r.location;
state.accompanyingCourse.locationStatus = r.locationStatus; state.accompanyingCourse.locationStatus = r.locationStatus;
state.accompanyingCourse.personLocation = r.personLocation; state.accompanyingCourse.personLocation = r.personLocation;
}, },
setEditContextTrue(state) { setEditContextTrue(state) {
console.log('### mutation: set edit context = true'); //console.log('### mutation: set edit context = true');
state.addressContext.edit = true; state.addressContext.edit = true;
} }
}, },
@ -226,7 +226,7 @@ let initPromise = getAccompanyingCourse(id)
})).catch((error) => { commit('catchError', error) }); })).catch((error) => { commit('catchError', error) });
}, },
updateLocation({ commit }, payload) { updateLocation({ commit }, payload) {
console.log('## action: updateLocation', payload.locationStatusTo); //console.log('## action: updateLocation', payload.locationStatusTo);
let body = { 'type': payload.entity, 'id': payload.entityId }; let body = { 'type': payload.entity, 'id': payload.entityId };
let location = {}; let location = {};
if (payload.locationStatusTo === 'person') { // patch for person address (don't remove addressLocation) if (payload.locationStatusTo === 'person') { // patch for person address (don't remove addressLocation)