mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
Merge branch 'issue478_remove_localisation' into 'master'
fix parcours localisation See merge request Chill-Projet/chill-bundles!368
This commit is contained in:
commit
ab74478afc
@ -30,6 +30,7 @@ and this project adheres to
|
|||||||
* [confidential] Fix position of toggle button so it does not cover text nor fall outside of box (no issue)
|
* [confidential] Fix position of toggle button so it does not cover text nor fall outside of box (no issue)
|
||||||
* [parcours] Fix edit of both thirdparty and contact name (https://gitlab.com/champs-libres/departement-de-la-vendee/chill/-/issues/474)
|
* [parcours] Fix edit of both thirdparty and contact name (https://gitlab.com/champs-libres/departement-de-la-vendee/chill/-/issues/474)
|
||||||
* [template] do not list inactive templates (for doc generator)
|
* [template] do not list inactive templates (for doc generator)
|
||||||
|
* [parcours] location cannot be removed if linked to a user (https://gitlab.com/champs-libres/departement-de-la-vendee/chill/-/issues/478)
|
||||||
* [person] email added to twig personRenderbox (https://gitlab.com/champs-libres/departement-de-la-vendee/chill/-/issues/490)
|
* [person] email added to twig personRenderbox (https://gitlab.com/champs-libres/departement-de-la-vendee/chill/-/issues/490)
|
||||||
|
|
||||||
## Test releases
|
## Test releases
|
||||||
|
@ -59,14 +59,6 @@
|
|||||||
ref="addAddress">
|
ref="addAddress">
|
||||||
</add-address>
|
</add-address>
|
||||||
</li>
|
</li>
|
||||||
<li v-if="isPersonLocation">
|
|
||||||
<button
|
|
||||||
class="btn btn-remove"
|
|
||||||
@click="removeAddress"
|
|
||||||
:title="$t('courselocation.remove_button')">
|
|
||||||
{{ $t('action.remove') }}
|
|
||||||
</button>
|
|
||||||
</li>
|
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -180,22 +172,6 @@ export default {
|
|||||||
}
|
}
|
||||||
this.$store.commit('setAddressContext', context);
|
this.$store.commit('setAddressContext', context);
|
||||||
},
|
},
|
||||||
removeAddress() {
|
|
||||||
let payload = {
|
|
||||||
target: this.context.target.name,
|
|
||||||
targetId: this.context.target.id,
|
|
||||||
locationStatusTo: 'none'
|
|
||||||
};
|
|
||||||
//console.log('remove address');
|
|
||||||
this.$store.dispatch('updateLocation', payload)
|
|
||||||
.catch(({name, violations}) => {
|
|
||||||
if (name === 'ValidationException' || name === 'AccessException') {
|
|
||||||
violations.forEach((violation) => this.$toast.open({message: violation}));
|
|
||||||
} else {
|
|
||||||
this.$toast.open({message: 'An error occurred'})
|
|
||||||
}
|
|
||||||
});
|
|
||||||
},
|
|
||||||
displayErrors() {
|
displayErrors() {
|
||||||
return this.$refs.addAddress.errorMsg;
|
return this.$refs.addAddress.errorMsg;
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user