Skip to content

Commit b8359e8

Browse files
authored
UI: Allow custom footer in password reset page (#10461)
* Allow custom footer in password reset page * fixup
1 parent 8b09295 commit b8359e8

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

ui/public/config.json

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"loginTitle": "CloudStack",
1414
"loginFavicon": "assets/logo.svg",
1515
"loginFooter": "",
16+
"resetPasswordFooter": "",
1617
"logo": "assets/logo.svg",
1718
"minilogo": "assets/mini-logo.svg",
1819
"banner": "assets/banner.svg",

ui/src/layouts/UserLayout.vue

+3-2
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)