From b17bef17e3e10f3b2abdf71cb4b7281179ec275a Mon Sep 17 00:00:00 2001 From: Newman Chow Date: Tue, 8 Oct 2024 17:30:57 +0800 Subject: [PATCH] Use history back for settings v2 pages navbar --- .make-lint-translation-keys-expect | 16 ++++++++-------- authui/src/authflowv2.ts | 2 ++ authui/src/authflowv2/back.ts | 16 ++++++++++++++++ authui/src/authflowv2/components/navbar.css | 4 ++++ .../templates/en/web/authflowv2/__navbar.html | 8 ++++---- .../en/web/authflowv2/settings_advanced.html | 1 - .../en/web/authflowv2/settings_biometric.html | 1 - .../web/authflowv2/settings_change_password.html | 1 - .../web/authflowv2/settings_delete_account.html | 1 - .../authflowv2/settings_identity_add_email.html | 1 - .../authflowv2/settings_identity_add_phone.html | 1 - .../settings_identity_change_primary_email.html | 1 - .../settings_identity_change_primary_phone.html | 1 - .../authflowv2/settings_identity_edit_email.html | 1 - .../authflowv2/settings_identity_edit_phone.html | 1 - .../settings_identity_edit_username.html | 1 - .../authflowv2/settings_identity_list_email.html | 1 - .../authflowv2/settings_identity_list_phone.html | 1 - .../settings_identity_list_username.html | 1 - .../settings_identity_new_username.html | 1 - .../settings_identity_verify_email.html | 1 - .../settings_identity_verify_phone.html | 1 - .../authflowv2/settings_identity_view_email.html | 1 - .../authflowv2/settings_identity_view_phone.html | 1 - .../settings_identity_view_username.html | 1 - .../en/web/authflowv2/settings_mfa.html | 1 - .../authflowv2/settings_mfa_create_password.html | 1 - .../en/web/authflowv2/settings_mfa_password.html | 1 - .../en/web/authflowv2/settings_oob_otp.html | 1 - .../en/web/authflowv2/settings_passkey.html | 1 - .../en/web/authflowv2/settings_picture_edit.html | 1 - .../en/web/authflowv2/settings_profile.html | 1 - .../settings_profile_edit_address.html | 1 - .../settings_profile_edit_birthdate.html | 1 - .../authflowv2/settings_profile_edit_custom.html | 1 - .../authflowv2/settings_profile_edit_gender.html | 1 - .../authflowv2/settings_profile_edit_locale.html | 1 - .../authflowv2/settings_profile_edit_name.html | 1 - .../settings_profile_edit_zoneinfo.html | 1 - .../en/web/authflowv2/settings_sessions.html | 1 - .../en/web/authflowv2/settings_totp.html | 1 - 41 files changed, 34 insertions(+), 48 deletions(-) create mode 100644 authui/src/authflowv2/back.ts diff --git a/.make-lint-translation-keys-expect b/.make-lint-translation-keys-expect index e861706ab2..0fc1f1f33c 100644 --- a/.make-lint-translation-keys-expect +++ b/.make-lint-translation-keys-expect @@ -29,17 +29,17 @@ resources/authgear/templates/en/web/authflowv2/forgot_password.html:159:26: temp resources/authgear/templates/en/web/authflowv2/layout.html:5:14: template translation is forbidden: `widget` resources/authgear/templates/en/web/authflowv2/login.html:252:37: translation key not defined: "%s-icon" resources/authgear/templates/en/web/authflowv2/settings_layout.html:3:14: template translation is forbidden: `widget` -resources/authgear/templates/en/web/authflowv2/settings_oob_otp.html:39:31: translation key not defined: "/settings/mfa/new_oob_otp_%s" -resources/authgear/templates/en/web/authflowv2/settings_profile.html:139:22: translation key not defined: "custom-attribute-label-%s" -resources/authgear/templates/en/web/authflowv2/settings_profile.html:140:20: invalid translation key: "$labelKey" -resources/authgear/templates/en/web/authflowv2/settings_profile.html:144:21: invalid translation key: "$labelKey" -resources/authgear/templates/en/web/authflowv2/settings_profile.html:196:22: invalid translation key: "$label" +resources/authgear/templates/en/web/authflowv2/settings_oob_otp.html:38:31: translation key not defined: "/settings/mfa/new_oob_otp_%s" +resources/authgear/templates/en/web/authflowv2/settings_profile.html:138:22: translation key not defined: "custom-attribute-label-%s" +resources/authgear/templates/en/web/authflowv2/settings_profile.html:139:20: invalid translation key: "$labelKey" +resources/authgear/templates/en/web/authflowv2/settings_profile.html:143:21: invalid translation key: "$labelKey" +resources/authgear/templates/en/web/authflowv2/settings_profile.html:195:22: invalid translation key: "$label" resources/authgear/templates/en/web/authflowv2/settings_profile_edit_custom.html:6:18: translation key not defined: "custom-attribute-label-%s" resources/authgear/templates/en/web/authflowv2/settings_profile_edit_custom.html:7:16: invalid translation key: "$labelKey" resources/authgear/templates/en/web/authflowv2/settings_profile_edit_custom.html:11:17: invalid translation key: "$labelKey" -resources/authgear/templates/en/web/authflowv2/settings_profile_edit_custom.html:91:30: translation key not defined: "custom-attribute-enum-label-%s-%s" -resources/authgear/templates/en/web/authflowv2/settings_profile_edit_custom.html:92:28: invalid translation key: "$enum_label_key" -resources/authgear/templates/en/web/authflowv2/settings_profile_edit_custom.html:95:28: invalid translation key: "$enum_label_key" +resources/authgear/templates/en/web/authflowv2/settings_profile_edit_custom.html:90:30: translation key not defined: "custom-attribute-enum-label-%s-%s" +resources/authgear/templates/en/web/authflowv2/settings_profile_edit_custom.html:91:28: invalid translation key: "$enum_label_key" +resources/authgear/templates/en/web/authflowv2/settings_profile_edit_custom.html:94:28: invalid translation key: "$enum_label_key" resources/authgear/templates/en/web/authflowv2/signup.html:93:26: translation key not defined: "v2.page.signup-login.continue.subtitle-%v" resources/authgear/templates/en/web/authflowv2/signup.html:102:26: translation key not defined: "v2.page.signup.continue.subtitle-%v" resources/authgear/templates/en/web/authflowv2/signup.html:275:35: translation key not defined: "%s-icon" diff --git a/authui/src/authflowv2.ts b/authui/src/authflowv2.ts index cb82a1023e..2a1de2143e 100644 --- a/authui/src/authflowv2.ts +++ b/authui/src/authflowv2.ts @@ -50,6 +50,7 @@ import { BotProtectionStandalonePageController } from "./authflowv2/botprotectio import { ImagePickerController } from "./imagepicker"; import { SelectInputController } from "./authflowv2/selectInput"; import { AccountDeletionController } from "./accountdeletion"; +import { BackController } from "./authflowv2/back"; axios.defaults.withCredentials = true; @@ -136,5 +137,6 @@ Stimulus.register("bot-protection-dialog", BotProtectionDialogController); Stimulus.register("select-input", SelectInputController); Stimulus.register("account-deletion", AccountDeletionController); +Stimulus.register("back-button", BackController); injectCSSAttrs(document.documentElement); diff --git a/authui/src/authflowv2/back.ts b/authui/src/authflowv2/back.ts new file mode 100644 index 0000000000..bc4626f5c2 --- /dev/null +++ b/authui/src/authflowv2/back.ts @@ -0,0 +1,16 @@ +import { Controller } from "@hotwired/stimulus"; + +export class BackController extends Controller { + connect(): void { + this.element.classList.remove("hidden"); + this.element.addEventListener("click", this.back); + } + + disconnect(): void { + this.element.removeEventListener("click", this.back); + } + + back = () => { + window.history.back(); + }; +} diff --git a/authui/src/authflowv2/components/navbar.css b/authui/src/authflowv2/components/navbar.css index de9c786e86..91127e26a3 100644 --- a/authui/src/authflowv2/components/navbar.css +++ b/authui/src/authflowv2/components/navbar.css @@ -62,6 +62,10 @@ .navbar__item { @apply relative; + @apply inline-flex; + @apply items-center; + @apply justify-center; + @apply gap-x-3; color: var(--navbar__item-text-color); font-family: var(--navbar__item-font-family); diff --git a/resources/authgear/templates/en/web/authflowv2/__navbar.html b/resources/authgear/templates/en/web/authflowv2/__navbar.html index d6fb9f1496..cf5a333970 100644 --- a/resources/authgear/templates/en/web/authflowv2/__navbar.html +++ b/resources/authgear/templates/en/web/authflowv2/__navbar.html @@ -2,13 +2,13 @@ {{ end }} diff --git a/resources/authgear/templates/en/web/authflowv2/settings_advanced.html b/resources/authgear/templates/en/web/authflowv2/settings_advanced.html index 023594a821..a697e5d603 100644 --- a/resources/authgear/templates/en/web/authflowv2/settings_advanced.html +++ b/resources/authgear/templates/en/web/authflowv2/settings_advanced.html @@ -4,7 +4,6 @@ {{ template "authflowv2/__navbar.html" (dict "BackTitle" (translate "v2.component.navbar.default.item-back-button-label" nil) - "BackHref" (call $.MakeURL "/settings") "Title" (translate "v2.page.settings-advanced-settings.default.title" nil) ) }} diff --git a/resources/authgear/templates/en/web/authflowv2/settings_biometric.html b/resources/authgear/templates/en/web/authflowv2/settings_biometric.html index c5a47bb5e1..60b7da28c1 100644 --- a/resources/authgear/templates/en/web/authflowv2/settings_biometric.html +++ b/resources/authgear/templates/en/web/authflowv2/settings_biometric.html @@ -4,7 +4,6 @@ {{ template "authflowv2/__navbar.html" (dict "BackTitle" (translate "v2.component.navbar.default.item-back-button-label" nil) - "BackHref" (call $.MakeURL "/settings") "Title" (translate "v2.page.settings-biometric.default.title" nil) ) }} diff --git a/resources/authgear/templates/en/web/authflowv2/settings_change_password.html b/resources/authgear/templates/en/web/authflowv2/settings_change_password.html index 1c61def0fd..5992580079 100644 --- a/resources/authgear/templates/en/web/authflowv2/settings_change_password.html +++ b/resources/authgear/templates/en/web/authflowv2/settings_change_password.html @@ -4,7 +4,6 @@ {{ template "authflowv2/__navbar.html" (dict "BackTitle" (translate "v2.component.navbar.default.item-back-button-label" nil) - "BackHref" (call $.MakeURL "/settings") "Title" (translate "v2.page.settings-change-password.default.title" nil) ) }} diff --git a/resources/authgear/templates/en/web/authflowv2/settings_delete_account.html b/resources/authgear/templates/en/web/authflowv2/settings_delete_account.html index d430020ac9..4872d5f14f 100644 --- a/resources/authgear/templates/en/web/authflowv2/settings_delete_account.html +++ b/resources/authgear/templates/en/web/authflowv2/settings_delete_account.html @@ -4,7 +4,6 @@ {{ template "authflowv2/__navbar.html" (dict "BackTitle" (translate "v2.component.navbar.default.item-back-button-label" nil) - "BackHref" (call $.MakeURL "/settings") "Title" (translate "v2.page.settings-delete-account.default.title" nil) ) }} diff --git a/resources/authgear/templates/en/web/authflowv2/settings_identity_add_email.html b/resources/authgear/templates/en/web/authflowv2/settings_identity_add_email.html index 725340879e..4715f68d53 100644 --- a/resources/authgear/templates/en/web/authflowv2/settings_identity_add_email.html +++ b/resources/authgear/templates/en/web/authflowv2/settings_identity_add_email.html @@ -4,7 +4,6 @@ {{ template "authflowv2/__navbar.html" (dict "BackTitle" (translate "v2.component.navbar.default.item-back-button-label" nil) - "BackHref" (call $.MakeURL "/settings/identity/email" "q_login_id_key" $.LoginIDKey) "Title" (translate "v2.page.settings-identity-add-email.default.title" nil) ) }} diff --git a/resources/authgear/templates/en/web/authflowv2/settings_identity_add_phone.html b/resources/authgear/templates/en/web/authflowv2/settings_identity_add_phone.html index adeeb68524..73e12e8752 100644 --- a/resources/authgear/templates/en/web/authflowv2/settings_identity_add_phone.html +++ b/resources/authgear/templates/en/web/authflowv2/settings_identity_add_phone.html @@ -4,7 +4,6 @@ {{ template "authflowv2/__navbar.html" (dict "BackTitle" (translate "v2.component.navbar.default.item-back-button-label" nil) - "BackHref" (call $.MakeURL "/settings/identity/phone" "q_login_id_key" $.LoginIDKey) "Title" (translate "v2.page.settings-identity-add-phone.default.title" nil) ) }} diff --git a/resources/authgear/templates/en/web/authflowv2/settings_identity_change_primary_email.html b/resources/authgear/templates/en/web/authflowv2/settings_identity_change_primary_email.html index b7e4fcafba..40361a527d 100644 --- a/resources/authgear/templates/en/web/authflowv2/settings_identity_change_primary_email.html +++ b/resources/authgear/templates/en/web/authflowv2/settings_identity_change_primary_email.html @@ -4,7 +4,6 @@ {{ template "authflowv2/__navbar.html" (dict "BackTitle" (translate "v2.component.navbar.default.item-back-button-label" nil) - "BackHref" (call $.MakeURL "/settings/identity/email" "q_login_id_key" $.LoginIDKey) "Title" (translate "v2.page.settings-identity-change-primary-email.default.title" nil) ) }} diff --git a/resources/authgear/templates/en/web/authflowv2/settings_identity_change_primary_phone.html b/resources/authgear/templates/en/web/authflowv2/settings_identity_change_primary_phone.html index 01a8426b4d..d1a7eb3525 100644 --- a/resources/authgear/templates/en/web/authflowv2/settings_identity_change_primary_phone.html +++ b/resources/authgear/templates/en/web/authflowv2/settings_identity_change_primary_phone.html @@ -4,7 +4,6 @@ {{ template "authflowv2/__navbar.html" (dict "BackTitle" (translate "v2.component.navbar.default.item-back-button-label" nil) - "BackHref" (call $.MakeURL "/settings/identity/phone" "q_login_id_key" $.LoginIDKey) "Title" (translate "v2.page.settings-identity-change-primary-phone.default.title" nil) ) }} diff --git a/resources/authgear/templates/en/web/authflowv2/settings_identity_edit_email.html b/resources/authgear/templates/en/web/authflowv2/settings_identity_edit_email.html index cccaa45770..ff4f87d0d8 100644 --- a/resources/authgear/templates/en/web/authflowv2/settings_identity_edit_email.html +++ b/resources/authgear/templates/en/web/authflowv2/settings_identity_edit_email.html @@ -4,7 +4,6 @@ {{ template "authflowv2/__navbar.html" (dict "BackTitle" (translate "v2.component.navbar.default.item-back-button-label" nil) - "BackHref" (call $.MakeURL "/settings/identity/email" "q_login_id_key" $.LoginIDKey) "Title" (translate "v2.page.settings-identity-edit-email.default.title" nil) ) }} diff --git a/resources/authgear/templates/en/web/authflowv2/settings_identity_edit_phone.html b/resources/authgear/templates/en/web/authflowv2/settings_identity_edit_phone.html index 4f0e52ce73..c6f15b9ecf 100644 --- a/resources/authgear/templates/en/web/authflowv2/settings_identity_edit_phone.html +++ b/resources/authgear/templates/en/web/authflowv2/settings_identity_edit_phone.html @@ -4,7 +4,6 @@ {{ template "authflowv2/__navbar.html" (dict "BackTitle" (translate "v2.component.navbar.default.item-back-button-label" nil) - "BackHref" (call $.MakeURL "/settings/identity/phone" "q_login_id_key" $.LoginIDKey) "Title" (translate "v2.page.settings-identity-edit-phone.default.title" nil) ) }} diff --git a/resources/authgear/templates/en/web/authflowv2/settings_identity_edit_username.html b/resources/authgear/templates/en/web/authflowv2/settings_identity_edit_username.html index f3b27dd5fe..a50cfaa0f2 100644 --- a/resources/authgear/templates/en/web/authflowv2/settings_identity_edit_username.html +++ b/resources/authgear/templates/en/web/authflowv2/settings_identity_edit_username.html @@ -4,7 +4,6 @@ {{ template "authflowv2/__navbar.html" (dict "BackTitle" (translate "v2.component.navbar.default.item-back-button-label" nil) - "BackHref" (call $.MakeURL "/settings/identity/view_username" "q_login_id" $.Identity.ID) "Title" (translate "v2.page.settings-identity-edit-username.default.title" nil) ) }} diff --git a/resources/authgear/templates/en/web/authflowv2/settings_identity_list_email.html b/resources/authgear/templates/en/web/authflowv2/settings_identity_list_email.html index 63c0347e41..0bcd17b3d1 100644 --- a/resources/authgear/templates/en/web/authflowv2/settings_identity_list_email.html +++ b/resources/authgear/templates/en/web/authflowv2/settings_identity_list_email.html @@ -4,7 +4,6 @@ {{ template "authflowv2/__navbar.html" (dict "BackTitle" (translate "v2.component.navbar.default.item-back-button-label" nil) - "BackHref" (call $.MakeURL "/settings" "q_login_id_key" $.LoginIDKey) "Title" (translate "v2.page.settings-identity-email.default.title" nil) ) }} diff --git a/resources/authgear/templates/en/web/authflowv2/settings_identity_list_phone.html b/resources/authgear/templates/en/web/authflowv2/settings_identity_list_phone.html index f808999959..e4e99e7483 100644 --- a/resources/authgear/templates/en/web/authflowv2/settings_identity_list_phone.html +++ b/resources/authgear/templates/en/web/authflowv2/settings_identity_list_phone.html @@ -4,7 +4,6 @@ {{ template "authflowv2/__navbar.html" (dict "BackTitle" (translate "v2.component.navbar.default.item-back-button-label" nil) - "BackHref" (call $.MakeURL "/settings") "Title" (translate "v2.page.settings-identity-phone.default.title" nil) ) }} diff --git a/resources/authgear/templates/en/web/authflowv2/settings_identity_list_username.html b/resources/authgear/templates/en/web/authflowv2/settings_identity_list_username.html index 9e447f3bb7..f48ebd2296 100644 --- a/resources/authgear/templates/en/web/authflowv2/settings_identity_list_username.html +++ b/resources/authgear/templates/en/web/authflowv2/settings_identity_list_username.html @@ -4,7 +4,6 @@ {{ template "authflowv2/__navbar.html" (dict "BackTitle" (translate "v2.component.navbar.default.item-back-button-label" nil) - "BackHref" (call $.MakeURL "/settings") "Title" (translate "v2.page.settings-identity-list-username.default.title" nil) ) }} diff --git a/resources/authgear/templates/en/web/authflowv2/settings_identity_new_username.html b/resources/authgear/templates/en/web/authflowv2/settings_identity_new_username.html index 18369ae105..677dcbd3a1 100644 --- a/resources/authgear/templates/en/web/authflowv2/settings_identity_new_username.html +++ b/resources/authgear/templates/en/web/authflowv2/settings_identity_new_username.html @@ -4,7 +4,6 @@ {{ template "authflowv2/__navbar.html" (dict "BackTitle" (translate "v2.component.navbar.default.item-back-button-label" nil) - "BackHref" (call $.MakeURL "/settings/identity/username" "q_login_id_key" $.LoginIDKey) "Title" (translate "v2.page.settings-identity-new-username.default.title" nil) ) }} diff --git a/resources/authgear/templates/en/web/authflowv2/settings_identity_verify_email.html b/resources/authgear/templates/en/web/authflowv2/settings_identity_verify_email.html index 09400ba4e4..ffff8254b8 100644 --- a/resources/authgear/templates/en/web/authflowv2/settings_identity_verify_email.html +++ b/resources/authgear/templates/en/web/authflowv2/settings_identity_verify_email.html @@ -4,7 +4,6 @@ {{ template "authflowv2/__navbar.html" (dict "BackTitle" (translate "v2.component.navbar.default.item-back-button-label" nil) - "BackHref" (call $.MakeURL "/settings/identity/email" "q_login_id_key" $.LoginIDKey) "Title" (translate "v2.page.settings-identity-verify-email.default.title" nil) ) }} diff --git a/resources/authgear/templates/en/web/authflowv2/settings_identity_verify_phone.html b/resources/authgear/templates/en/web/authflowv2/settings_identity_verify_phone.html index f3f4a01f33..5c4d80feda 100644 --- a/resources/authgear/templates/en/web/authflowv2/settings_identity_verify_phone.html +++ b/resources/authgear/templates/en/web/authflowv2/settings_identity_verify_phone.html @@ -4,7 +4,6 @@ {{ template "authflowv2/__navbar.html" (dict "BackTitle" (translate "v2.component.navbar.default.item-back-button-label" nil) - "BackHref" (call $.MakeURL "/settings/identity/phone" "q_login_id_key" $.LoginIDKey) "Title" (translate "v2.page.settings-identity-verify-phone.default.title" nil) ) }} diff --git a/resources/authgear/templates/en/web/authflowv2/settings_identity_view_email.html b/resources/authgear/templates/en/web/authflowv2/settings_identity_view_email.html index 6a1dd6104c..0f34df2563 100644 --- a/resources/authgear/templates/en/web/authflowv2/settings_identity_view_email.html +++ b/resources/authgear/templates/en/web/authflowv2/settings_identity_view_email.html @@ -4,7 +4,6 @@ {{ template "authflowv2/__navbar.html" (dict "BackTitle" (translate "v2.component.navbar.default.item-back-button-label" nil) - "BackHref" (call $.MakeURL "/settings/identity/email" "q_login_id_key" $.LoginIDKey) "Title" (translate "v2.page.settings-identity-email.default.title" nil) ) }} diff --git a/resources/authgear/templates/en/web/authflowv2/settings_identity_view_phone.html b/resources/authgear/templates/en/web/authflowv2/settings_identity_view_phone.html index c5c18b83a3..70a58aa10f 100644 --- a/resources/authgear/templates/en/web/authflowv2/settings_identity_view_phone.html +++ b/resources/authgear/templates/en/web/authflowv2/settings_identity_view_phone.html @@ -4,7 +4,6 @@ {{ template "authflowv2/__navbar.html" (dict "BackTitle" (translate "v2.component.navbar.default.item-back-button-label" nil) - "BackHref" (call $.MakeURL "/settings/identity/phone" "q_login_id_key" $.LoginIDKey) "Title" (translate "v2.page.settings-identity-phone.default.title" nil) ) }} diff --git a/resources/authgear/templates/en/web/authflowv2/settings_identity_view_username.html b/resources/authgear/templates/en/web/authflowv2/settings_identity_view_username.html index 5e9dab00f8..a270036c62 100644 --- a/resources/authgear/templates/en/web/authflowv2/settings_identity_view_username.html +++ b/resources/authgear/templates/en/web/authflowv2/settings_identity_view_username.html @@ -4,7 +4,6 @@ {{ template "authflowv2/__navbar.html" (dict "BackTitle" (translate "v2.component.navbar.default.item-back-button-label" nil) - "BackHref" (call $.MakeURL "/settings/identity/username" "q_login_id_key" $.LoginIDKey) "Title" (translate "v2.page.settings-identity-view-username.default.title" nil) ) }} diff --git a/resources/authgear/templates/en/web/authflowv2/settings_mfa.html b/resources/authgear/templates/en/web/authflowv2/settings_mfa.html index f400f6026a..adc4dadc50 100644 --- a/resources/authgear/templates/en/web/authflowv2/settings_mfa.html +++ b/resources/authgear/templates/en/web/authflowv2/settings_mfa.html @@ -4,7 +4,6 @@ {{ template "authflowv2/__navbar.html" (dict "BackTitle" (translate "v2.component.navbar.default.item-back-button-label" nil) - "BackHref" (call $.MakeURL "/settings") "Title" (translate "v2.page.settings-mfa.default.title" nil) ) }} diff --git a/resources/authgear/templates/en/web/authflowv2/settings_mfa_create_password.html b/resources/authgear/templates/en/web/authflowv2/settings_mfa_create_password.html index d17c243b25..c0ad2a9a27 100644 --- a/resources/authgear/templates/en/web/authflowv2/settings_mfa_create_password.html +++ b/resources/authgear/templates/en/web/authflowv2/settings_mfa_create_password.html @@ -4,7 +4,6 @@ {{ template "authflowv2/__navbar.html" (dict "BackTitle" (translate "v2.component.navbar.default.item-back-button-label" nil) - "BackHref" (call $.MakeURL "/settings/mfa") "Title" (translate "v2.page.settings-mfa-create-password.default.title" nil) ) }} diff --git a/resources/authgear/templates/en/web/authflowv2/settings_mfa_password.html b/resources/authgear/templates/en/web/authflowv2/settings_mfa_password.html index 3578340604..3acc20d6c0 100644 --- a/resources/authgear/templates/en/web/authflowv2/settings_mfa_password.html +++ b/resources/authgear/templates/en/web/authflowv2/settings_mfa_password.html @@ -4,7 +4,6 @@ {{ template "authflowv2/__navbar.html" (dict "BackTitle" (translate "v2.component.navbar.default.item-back-button-label" nil) - "BackHref" (call $.MakeURL "/settings/mfa") "Title" (translate "v2.page.settings-mfa-password.default.title" nil) ) }} diff --git a/resources/authgear/templates/en/web/authflowv2/settings_oob_otp.html b/resources/authgear/templates/en/web/authflowv2/settings_oob_otp.html index 14dd4ccaa5..ce0735b61b 100644 --- a/resources/authgear/templates/en/web/authflowv2/settings_oob_otp.html +++ b/resources/authgear/templates/en/web/authflowv2/settings_oob_otp.html @@ -8,7 +8,6 @@ {{ template "authflowv2/__navbar.html" (dict "BackTitle" (translate "v2.component.navbar.default.item-back-button-label" nil) - "BackHref" (call $.MakeURL "/settings/mfa") "Title" $title ) }} diff --git a/resources/authgear/templates/en/web/authflowv2/settings_passkey.html b/resources/authgear/templates/en/web/authflowv2/settings_passkey.html index 52bceccd62..9bc64d5e9d 100644 --- a/resources/authgear/templates/en/web/authflowv2/settings_passkey.html +++ b/resources/authgear/templates/en/web/authflowv2/settings_passkey.html @@ -4,7 +4,6 @@ {{ template "authflowv2/__navbar.html" (dict "BackTitle" (translate "v2.component.navbar.default.item-back-button-label" nil) - "BackHref" (call $.MakeURL "/settings") "Title" (translate "v2.page.settings-passkey.default.title" nil) ) }} diff --git a/resources/authgear/templates/en/web/authflowv2/settings_picture_edit.html b/resources/authgear/templates/en/web/authflowv2/settings_picture_edit.html index 57d022cc71..9039e704aa 100644 --- a/resources/authgear/templates/en/web/authflowv2/settings_picture_edit.html +++ b/resources/authgear/templates/en/web/authflowv2/settings_picture_edit.html @@ -5,7 +5,6 @@ {{ template "authflowv2/__navbar.html" (dict "BackTitle" (translate "v2.component.navbar.default.item-back-button-label" nil) - "BackHref" (call $.MakeURL "/settings/profile") "Title" (translate "v2.page.settings-profile.default.profile-picture-title" nil) ) }} diff --git a/resources/authgear/templates/en/web/authflowv2/settings_profile.html b/resources/authgear/templates/en/web/authflowv2/settings_profile.html index b3d2211ebc..2dff9d448a 100644 --- a/resources/authgear/templates/en/web/authflowv2/settings_profile.html +++ b/resources/authgear/templates/en/web/authflowv2/settings_profile.html @@ -4,7 +4,6 @@ {{ template "authflowv2/__navbar.html" (dict "BackTitle" (translate "v2.component.navbar.default.item-back-button-label" nil) - "BackHref" (call $.MakeURL "/settings") "Title" (translate "v2.page.settings-profile.default.title" nil) ) }} diff --git a/resources/authgear/templates/en/web/authflowv2/settings_profile_edit_address.html b/resources/authgear/templates/en/web/authflowv2/settings_profile_edit_address.html index 9dd3162cad..c30c26f3a9 100644 --- a/resources/authgear/templates/en/web/authflowv2/settings_profile_edit_address.html +++ b/resources/authgear/templates/en/web/authflowv2/settings_profile_edit_address.html @@ -3,7 +3,6 @@ {{ define "page-navbar" }} {{ template "authflowv2/__navbar.html" (dict - "BackHref" (call $.MakeURL "/settings/profile") "Title" (translate "v2.page.settings-profile-edit-address.default.title" nil) ) }} diff --git a/resources/authgear/templates/en/web/authflowv2/settings_profile_edit_birthdate.html b/resources/authgear/templates/en/web/authflowv2/settings_profile_edit_birthdate.html index 983eb3e5fd..6290b0dd0c 100644 --- a/resources/authgear/templates/en/web/authflowv2/settings_profile_edit_birthdate.html +++ b/resources/authgear/templates/en/web/authflowv2/settings_profile_edit_birthdate.html @@ -3,7 +3,6 @@ {{ define "page-navbar" }} {{ template "authflowv2/__navbar.html" (dict - "BackHref" (call $.MakeURL "/settings/profile") "Title" (translate "v2.page.settings-profile-edit-birthdate.default.title" nil) ) }} diff --git a/resources/authgear/templates/en/web/authflowv2/settings_profile_edit_custom.html b/resources/authgear/templates/en/web/authflowv2/settings_profile_edit_custom.html index e465090bb4..7dd77a62b0 100644 --- a/resources/authgear/templates/en/web/authflowv2/settings_profile_edit_custom.html +++ b/resources/authgear/templates/en/web/authflowv2/settings_profile_edit_custom.html @@ -14,7 +14,6 @@ {{ template "authflowv2/__navbar.html" (dict "BackTitle" (translate "v2.component.navbar.default.item-back-button-label" nil) - "BackHref" (call $.MakeURL "/settings/profile") "Title" $label ) }} diff --git a/resources/authgear/templates/en/web/authflowv2/settings_profile_edit_gender.html b/resources/authgear/templates/en/web/authflowv2/settings_profile_edit_gender.html index e5954f7f61..f65cd9e10c 100644 --- a/resources/authgear/templates/en/web/authflowv2/settings_profile_edit_gender.html +++ b/resources/authgear/templates/en/web/authflowv2/settings_profile_edit_gender.html @@ -4,7 +4,6 @@ {{ template "authflowv2/__navbar.html" (dict "Title" (include "v2.page.settings-profile-edit-gender.default.title" nil ) "BackTitle" (include "v2.component.navbar.default.item-back-button-label" nil ) - "BackHref" (call $.MakeURL "/settings/profile") ) }} {{ end }} diff --git a/resources/authgear/templates/en/web/authflowv2/settings_profile_edit_locale.html b/resources/authgear/templates/en/web/authflowv2/settings_profile_edit_locale.html index 70d9f643de..4f46c5ad1b 100644 --- a/resources/authgear/templates/en/web/authflowv2/settings_profile_edit_locale.html +++ b/resources/authgear/templates/en/web/authflowv2/settings_profile_edit_locale.html @@ -4,7 +4,6 @@ {{ template "authflowv2/__navbar.html" (dict "BackTitle" (translate "v2.component.navbar.default.item-back-button-label" nil) - "BackHref" (call $.MakeURL "/settings/profile") "Title" (translate "v2.page.settings-profile-edit-locale.default.title" nil) ) }} diff --git a/resources/authgear/templates/en/web/authflowv2/settings_profile_edit_name.html b/resources/authgear/templates/en/web/authflowv2/settings_profile_edit_name.html index fec3d9c4d9..b3a426288b 100644 --- a/resources/authgear/templates/en/web/authflowv2/settings_profile_edit_name.html +++ b/resources/authgear/templates/en/web/authflowv2/settings_profile_edit_name.html @@ -4,7 +4,6 @@ {{ template "authflowv2/__navbar.html" (dict "BackTitle" (translate "v2.component.navbar.default.item-back-button-label" nil) - "BackHref" (call $.MakeURL "/settings/profile") "Title" (translate "v2.page.settings-profile-edit-name.default.title" nil) ) }} diff --git a/resources/authgear/templates/en/web/authflowv2/settings_profile_edit_zoneinfo.html b/resources/authgear/templates/en/web/authflowv2/settings_profile_edit_zoneinfo.html index c197edec4b..bf98f90e2f 100644 --- a/resources/authgear/templates/en/web/authflowv2/settings_profile_edit_zoneinfo.html +++ b/resources/authgear/templates/en/web/authflowv2/settings_profile_edit_zoneinfo.html @@ -4,7 +4,6 @@ {{ template "authflowv2/__navbar.html" (dict "BackTitle" (translate "v2.component.navbar.default.item-back-button-label" nil) - "BackHref" (call $.MakeURL "/settings/profile") "Title" (translate "v2.page.settings-profile-edit-zoneinfo.default.title" nil) ) }} diff --git a/resources/authgear/templates/en/web/authflowv2/settings_sessions.html b/resources/authgear/templates/en/web/authflowv2/settings_sessions.html index 90614d20c8..062c217df5 100644 --- a/resources/authgear/templates/en/web/authflowv2/settings_sessions.html +++ b/resources/authgear/templates/en/web/authflowv2/settings_sessions.html @@ -4,7 +4,6 @@ {{ template "authflowv2/__navbar.html" (dict "BackTitle" (translate "v2.component.navbar.default.item-back-button-label" nil) - "BackHref" (call $.MakeURL "/settings") "Title" (translate "v2.page.settings-sessions.default.title" nil) ) }} diff --git a/resources/authgear/templates/en/web/authflowv2/settings_totp.html b/resources/authgear/templates/en/web/authflowv2/settings_totp.html index 7f3fc39ad1..19473e37c2 100644 --- a/resources/authgear/templates/en/web/authflowv2/settings_totp.html +++ b/resources/authgear/templates/en/web/authflowv2/settings_totp.html @@ -4,7 +4,6 @@ {{ template "authflowv2/__navbar.html" (dict "BackTitle" (translate "v2.component.navbar.default.item-back-button-label" nil) - "BackHref" (call $.MakeURL "/settings/mfa") "Title" (translate "v2.page.settings-totp.default.title" nil) ) }}