mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
twig include allow to pass mode:edit option when it's not detected
This commit is contained in:
parent
46bd70881e
commit
44313b507a
@ -358,7 +358,7 @@ export default {
|
||||
},
|
||||
|
||||
/*
|
||||
* When changes are validated (get out step2 edit pane),
|
||||
* When changes are validated (get out step2 edit pane, button valid),
|
||||
* apply some transformations before asyncing with backend
|
||||
* from entity.selected to entity.address
|
||||
*/
|
||||
@ -494,7 +494,8 @@ export default {
|
||||
},
|
||||
|
||||
/*
|
||||
* When submit address (get out step1 show pane)
|
||||
* When submit address
|
||||
* (get out step1 show pane, submit button)
|
||||
*/
|
||||
submitAddress()
|
||||
{
|
||||
|
@ -28,6 +28,9 @@
|
||||
{% if 'edit' in app.request.get('_route') %}
|
||||
window.addressId = {{ app.request.get('address_id')|e('js') }};
|
||||
window.mode = 'edit';
|
||||
{% elseif mode is defined and mode == 'edit' %}
|
||||
window.addressId = {{ address_id|e('js') }};
|
||||
window.mode = 'edit';
|
||||
{% endif %}
|
||||
|
||||
{% if backUrl is not defined %}
|
||||
|
Loading…
x
Reference in New Issue
Block a user