Pass explicit props to login index component -- this fixes the bug where previously stuff nested under config wasn't unpacked.

This commit is contained in:
Dannon Baker
2019-11-08 21:40:46 -05:00
parent e3b9eb62f6
commit 8a9f29cbf9
+9 -1
View File
@@ -11,7 +11,15 @@ export function initLoginView(Galaxy, { options }) {
Galaxy.display(vm);
const component = Galaxy.params.token || Galaxy.params.expired_user ? Password : Index;
const loginInstance = Vue.extend(component);
new loginInstance({ propsData: options }).$mount(vm);
new loginInstance({
propsData: {
show_welcome_with_login: options.show_welcome_with_login,
welcome_url: options.welcome_url,
registration_warning_message: options.config.registration_warning_message,
mailing_join_addr: options.config.mailing_join_addr,
server_mail_configured: options.config.server_mail_configured
}
}).$mount(vm);
}
addInitialization(initLoginView);