mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-11-25 13:51:13 +00:00
Add a link to joinlemmy on lemmy.ml signup. Fixes #235
This commit is contained in:
parent
d174b53876
commit
e2a5a85c4e
1 changed files with 13 additions and 0 deletions
|
@ -21,10 +21,12 @@ import {
|
||||||
wsUserOp,
|
wsUserOp,
|
||||||
wsClient,
|
wsClient,
|
||||||
authField,
|
authField,
|
||||||
|
joinLemmyUrl,
|
||||||
} from "../utils";
|
} from "../utils";
|
||||||
import { i18n } from "../i18next";
|
import { i18n } from "../i18next";
|
||||||
import { HtmlTags } from "./html-tags";
|
import { HtmlTags } from "./html-tags";
|
||||||
import { Icon, Spinner } from "./icon";
|
import { Icon, Spinner } from "./icon";
|
||||||
|
import { T } from "inferno-i18next";
|
||||||
|
|
||||||
interface State {
|
interface State {
|
||||||
loginForm: LoginForm;
|
loginForm: LoginForm;
|
||||||
|
@ -83,6 +85,10 @@ export class Login extends Component<any, State> {
|
||||||
return `${i18n.t("login")} - ${this.state.site_view.site.name}`;
|
return `${i18n.t("login")} - ${this.state.site_view.site.name}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
get isLemmyMl(): boolean {
|
||||||
|
return isBrowser() && window.location.hostname == "lemmy.ml";
|
||||||
|
}
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
return (
|
return (
|
||||||
<div class="container">
|
<div class="container">
|
||||||
|
@ -296,6 +302,13 @@ export class Login extends Component<any, State> {
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
{this.isLemmyMl && (
|
||||||
|
<div class="mt-2 mb-0 alert alert-light" role="alert">
|
||||||
|
<T i18nKey="lemmy_ml_registration_message">
|
||||||
|
#<a href={joinLemmyUrl}>#</a>
|
||||||
|
</T>
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
<div class="form-group row">
|
<div class="form-group row">
|
||||||
<div class="col-sm-10">
|
<div class="col-sm-10">
|
||||||
<button type="submit" class="btn btn-secondary">
|
<button type="submit" class="btn btn-secondary">
|
||||||
|
|
Loading…
Reference in a new issue