mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-10-25 00:12:08 +08:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user