From 7aaafb90e34b62801b7807b75afdbb2d7bbfe63b Mon Sep 17 00:00:00 2001 From: Harvey Tindall Date: Thu, 22 Jun 2023 21:57:19 +0100 Subject: [PATCH] form: actually link to the my account page forgot to do this before. shown on the success modal. --- config/config-base.json | 2 +- html/form-base.html | 1 + html/user.html | 2 +- ts/form.ts | 4 +++- views.go | 7 +++++++ 5 files changed, 13 insertions(+), 3 deletions(-) diff --git a/config/config-base.json b/config/config-base.json index 409cca7..2a361c9 100644 --- a/config/config-base.json +++ b/config/config-base.json @@ -403,7 +403,7 @@ "value": "", "depends_true": "enabled", "required": "false", - "description": "Click the edit icon next to the \"User Page\" Setting to add custom Markdown messages that will be shown to the user." + "description": "Click the edit icon next to the \"User Page\" Setting to add custom Markdown messages that will be shown to the user. Note message cards are not private, little effort is required for anyone to view them." } } }, diff --git a/html/form-base.html b/html/form-base.html index 1675c56..ba8c318 100644 --- a/html/form-base.html +++ b/html/form-base.html @@ -30,6 +30,7 @@ window.reCAPTCHA = {{ .reCAPTCHA }}; window.reCAPTCHASiteKey = "{{ .reCAPTCHASiteKey }}"; window.userPageEnabled = {{ .userPageEnabled }}; + window.userPageAddress = "{{ .userPageAddress }}"; {{ if .passwordReset }} diff --git a/html/user.html b/html/user.html index d75b1b9..e073cf2 100644 --- a/html/user.html +++ b/html/user.html @@ -26,7 +26,7 @@ window.validationStrings = JSON.parse({{ .validationStrings }}); {{ template "header.html" . }} - {{ .lang.Strings.myAccount }} + {{ .strings.myAccount }}