mirror of
https://github.com/discourse/discourse.git
synced 2025-01-31 08:28:46 +08:00
UX: Hide external login column when account creation in progress (#12048)
This commit is contained in:
parent
5e1c8111d3
commit
49affb0542
|
@ -87,13 +87,17 @@ export default Controller.extend(
|
|||
return getURL(`/images/emoji/${emojiSet}/wave/${random}.png`);
|
||||
},
|
||||
|
||||
@discourseComputed("userFields", "hasAtLeastOneLoginButton")
|
||||
modalBodyClasses(userFields, hasAtLeastOneLoginButton) {
|
||||
@discourseComputed(
|
||||
"userFields",
|
||||
"hasAtLeastOneLoginButton",
|
||||
"hasAuthOptions"
|
||||
)
|
||||
modalBodyClasses(userFields, hasAtLeastOneLoginButton, hasAuthOptions) {
|
||||
const classes = [];
|
||||
if (userFields) {
|
||||
classes.push("has-user-fields");
|
||||
}
|
||||
if (hasAtLeastOneLoginButton) {
|
||||
if (hasAtLeastOneLoginButton && !hasAuthOptions) {
|
||||
classes.push("has-alt-auth");
|
||||
}
|
||||
return classes.join(" ");
|
||||
|
|
Loading…
Reference in New Issue
Block a user