Skip to content

Commit 04e08c1

Browse files
vishesh92dhslove
authored andcommitted
UI: Allow custom footer in password reset page (apache#10461)
* Allow custom footer in password reset page * fixup
1 parent ffae40f commit 04e08c1

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

ui/public/config.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"footer": "ⓒ 2021 ABLECLOUD Inc. All Rights Reserved.",
1313
"buildVersion": "V4.0-4.0.15",
1414
"loginFooter": "",
15+
"resetPasswordFooter": "",
1516
"logo": "assets/ablestack-logo.png",
1617
"minilogo": "assets/mini-ablestack-logo.png",
1718
"banner": "assets/ablestack-logo.png",

ui/src/layouts/UserLayout.vue

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,9 @@
3737
</div>
3838
<route-view></route-view>
3939
</div>
40-
<div class="user-layout-footer" v-if="$config.loginFooter">
41-
<label v-html="$config.loginFooter"></label>
40+
<div class="user-layout-footer" v-if="$config.loginFooter || $config.resetPasswordFooter">
41+
<label v-if="$route.name === 'resetPassword' && $config.resetPasswordFooter" v-html="$config.resetPasswordFooter"></label>
42+
<label v-else v-html="$config.loginFooter"></label>
4243
</div>
4344
</div>
4445
</template>

0 commit comments

Comments
 (0)