[mod]
This commit is contained in:
parent
bc59ff46db
commit
23ca09a8f3
3 changed files with 17 additions and 9 deletions
|
@ -348,7 +348,8 @@ namespace _espe.backend
|
|||
email_use_nominal_address : boolean;
|
||||
email_redirect_to_private_address : boolean;
|
||||
password : (null | string);
|
||||
}
|
||||
},
|
||||
notification_target_url_template : string
|
||||
) : Promise<
|
||||
Array<
|
||||
{
|
||||
|
@ -369,7 +370,10 @@ namespace _espe.backend
|
|||
}
|
||||
),
|
||||
{
|
||||
"data": data,
|
||||
"data": Object.assign(
|
||||
data,
|
||||
{"notification_target_url_template": notification_target_url_template}
|
||||
),
|
||||
"custom_response_handlers": {
|
||||
409: (output_data_raw) => output_data_raw,
|
||||
},
|
||||
|
|
|
@ -186,7 +186,15 @@ lib_plankton.zoo_page.register(
|
|||
"email_use_nominal_address": (value.email_address === "both"),
|
||||
"email_redirect_to_private_address": value.email_redirect,
|
||||
"password": value.password_value,
|
||||
}
|
||||
},
|
||||
lib_plankton.zoo_page.encode(
|
||||
{
|
||||
"name": "view",
|
||||
"parameters": {
|
||||
"id": "{{id}}",
|
||||
}
|
||||
}
|
||||
)
|
||||
);
|
||||
}
|
||||
catch (error) {
|
||||
|
|
|
@ -144,9 +144,8 @@ lib_plankton.zoo_page.register(
|
|||
{
|
||||
"label": lib_plankton.translate.get("page.view.form.action.summon"),
|
||||
"procedure": async (get_value, get_representation) => {
|
||||
const url_template : string = (
|
||||
window.location.href.split("#")[0]
|
||||
+
|
||||
const url : string = await _espe.backend.member_summon(
|
||||
id,
|
||||
lib_plankton.zoo_page.encode(
|
||||
{
|
||||
"name": "register",
|
||||
|
@ -157,9 +156,6 @@ lib_plankton.zoo_page.register(
|
|||
}
|
||||
)
|
||||
);
|
||||
|
||||
const url : string = await _espe.backend.member_summon(id, url_template);
|
||||
|
||||
if (_espe.conf.get().settings.test_mode) {
|
||||
alert(lib_plankton.translate.get("page.view.misc.test_info", {"url": url}));
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue