[FIX] Iframe auth Login Button (#2241)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
This commit is contained in:
parent
6abfbf615f
commit
c1f3f89c09
|
@ -9,6 +9,7 @@ const getUser = (state) => {
|
||||||
};
|
};
|
||||||
const getLoginServices = state => state.login.services || {};
|
const getLoginServices = state => state.login.services || {};
|
||||||
const getShowFormLoginSetting = state => state.settings.Accounts_ShowFormLogin || false;
|
const getShowFormLoginSetting = state => state.settings.Accounts_ShowFormLogin || false;
|
||||||
|
const getIframeEnabledSetting = state => state.settings.Accounts_iframe_enabled || false;
|
||||||
|
|
||||||
export const getUserSelector = createSelector(
|
export const getUserSelector = createSelector(
|
||||||
[getUser],
|
[getUser],
|
||||||
|
@ -16,6 +17,6 @@ export const getUserSelector = createSelector(
|
||||||
);
|
);
|
||||||
|
|
||||||
export const getShowLoginButton = createSelector(
|
export const getShowLoginButton = createSelector(
|
||||||
[getLoginServices, getShowFormLoginSetting],
|
[getLoginServices, getShowFormLoginSetting, getIframeEnabledSetting],
|
||||||
(loginServices, showFormLogin) => showFormLogin || Object.values(loginServices).length
|
(loginServices, showFormLogin, iframeEnabled) => showFormLogin || Object.values(loginServices).length || iframeEnabled
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue