This is an automated email from the ASF dual-hosted git repository.
pearl11594 pushed a commit to branch 4.20
in repository https://gitbox.apache.org/repos/asf/cloudstack.git
The following commit(s) were added to refs/heads/4.20 by this push:
new b8359e8f62e UI: Allow custom footer in password reset page (#10461)
b8359e8f62e is described below
commit b8359e8f62e23910e11548740e54aeb99a69ee93
Author: Vishesh <[email protected]>
AuthorDate: Fri Mar 7 11:18:24 2025 +0530
UI: Allow custom footer in password reset page (#10461)
* Allow custom footer in password reset page
* fixup
---
ui/public/config.json | 1 +
ui/src/layouts/UserLayout.vue | 5 +++--
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/ui/public/config.json b/ui/public/config.json
index 774e414af0a..38d1fd9bbe7 100644
--- a/ui/public/config.json
+++ b/ui/public/config.json
@@ -13,6 +13,7 @@
"loginTitle": "CloudStack",
"loginFavicon": "assets/logo.svg",
"loginFooter": "",
+ "resetPasswordFooter": "",
"logo": "assets/logo.svg",
"minilogo": "assets/mini-logo.svg",
"banner": "assets/banner.svg",
diff --git a/ui/src/layouts/UserLayout.vue b/ui/src/layouts/UserLayout.vue
index 6c81c858bd2..52fe94c7f5d 100644
--- a/ui/src/layouts/UserLayout.vue
+++ b/ui/src/layouts/UserLayout.vue
@@ -37,8 +37,9 @@
</div>
<route-view></route-view>
</div>
- <div class="user-layout-footer" v-if="$config.loginFooter">
- <label v-html="$config.loginFooter"></label>
+ <div class="user-layout-footer" v-if="$config.loginFooter ||
$config.resetPasswordFooter">
+ <label v-if="$route.name === 'resetPassword' &&
$config.resetPasswordFooter" v-html="$config.resetPasswordFooter"></label>
+ <label v-else v-html="$config.loginFooter"></label>
</div>
</div>
</template>