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…
Reference in New Issue