mirror of
https://github.com/discourse/discourse.git
synced 2025-02-21 03:19:10 +00:00
DEV: update show social login logic (#15809)
Only display text if one or more social login options are enabled
This commit is contained in:
parent
b44950c3d9
commit
6e4af0e36f
@ -100,9 +100,19 @@ export default Controller.extend(
|
||||
);
|
||||
},
|
||||
|
||||
@discourseComputed("externalAuthsOnly", "discourseConnectEnabled")
|
||||
showSocialLoginAvailable(externalAuthsOnly, discourseConnectEnabled) {
|
||||
return !externalAuthsOnly && !discourseConnectEnabled;
|
||||
@discourseComputed(
|
||||
"externalAuthsEnabled",
|
||||
"externalAuthsOnly",
|
||||
"discourseConnectEnabled"
|
||||
)
|
||||
showSocialLoginAvailable(
|
||||
externalAuthsEnabled,
|
||||
externalAuthsOnly,
|
||||
discourseConnectEnabled
|
||||
) {
|
||||
return (
|
||||
externalAuthsEnabled && !externalAuthsOnly && !discourseConnectEnabled
|
||||
);
|
||||
},
|
||||
|
||||
@discourseComputed(
|
||||
|
Loading…
x
Reference in New Issue
Block a user