mirror of
https://github.com/wekan/wekan.git
synced 2025-09-22 01:50:48 +02:00
Avoid further UI flickering on load and show/hide OR in login screen if more than one is active
Fixes #5028
This commit is contained in:
parent
d17d12e719
commit
1271409989
3 changed files with 23 additions and 14 deletions
|
@ -25,12 +25,6 @@ Template.userFormsLayout.onCreated(function () {
|
|||
templateInstance.currentSetting = new ReactiveVar();
|
||||
templateInstance.isLoading = new ReactiveVar(false);
|
||||
|
||||
Meteor.call('isPasswordLoginEnabled', (_, result) => {
|
||||
if (result) {
|
||||
$('.at-pwd-form').show();
|
||||
}
|
||||
});
|
||||
|
||||
if (!ReactiveCache.getCurrentUser()?.profile) {
|
||||
Meteor.call('isOidcRedirectionEnabled', (_, result) => {
|
||||
if (result) {
|
||||
|
@ -42,6 +36,7 @@ Template.userFormsLayout.onCreated(function () {
|
|||
}
|
||||
});
|
||||
}
|
||||
|
||||
Meteor.call('isDisableRegistration', (_, result) => {
|
||||
if (result) {
|
||||
$('.at-signup-link').hide();
|
||||
|
@ -53,7 +48,6 @@ Template.userFormsLayout.onCreated(function () {
|
|||
$('.at-pwd-link').hide();
|
||||
}
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
Template.userFormsLayout.onRendered(() => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue