diff options
author | 2022-06-16 02:41:14 +0100 | |
---|---|---|
committer | 2022-06-16 01:41:14 +0000 | |
commit | 4fe7da167b3307b198c3a20bc4a13953c79d2f2f (patch) | |
tree | 43d7b54a35af1d4fd483879e45802e03bed24300 /src/components/auth/ChangeServer.js | |
parent | Fix default accent color to Ferdium gradient (#273) (diff) | |
download | ferdium-app-4fe7da167b3307b198c3a20bc4a13953c79d2f2f.tar.gz ferdium-app-4fe7da167b3307b198c3a20bc4a13953c79d2f2f.tar.zst ferdium-app-4fe7da167b3307b198c3a20bc4a13953c79d2f2f.zip |
Remove Ferdi Server from available Servers List (#274)
Diffstat (limited to 'src/components/auth/ChangeServer.js')
-rw-r--r-- | src/components/auth/ChangeServer.js | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/components/auth/ChangeServer.js b/src/components/auth/ChangeServer.js index 61e0aed68..8d0960843 100644 --- a/src/components/auth/ChangeServer.js +++ b/src/components/auth/ChangeServer.js | |||
@@ -9,7 +9,7 @@ import Button from '../ui/button'; | |||
9 | import Link from '../ui/Link'; | 9 | import Link from '../ui/Link'; |
10 | import Infobox from '../ui/Infobox'; | 10 | import Infobox from '../ui/Infobox'; |
11 | import { url, required } from '../../helpers/validation-helpers'; | 11 | import { url, required } from '../../helpers/validation-helpers'; |
12 | import { LIVE_FERDIUM_API, LIVE_FRANZ_API, LIVE_FERDI_API } from '../../config'; | 12 | import { LIVE_FERDIUM_API, LIVE_FRANZ_API } from '../../config'; |
13 | import globalMessages from '../../i18n/globalMessages'; | 13 | import globalMessages from '../../i18n/globalMessages'; |
14 | import { H1 } from '../ui/headline'; | 14 | import { H1 } from '../ui/headline'; |
15 | 15 | ||
@@ -44,11 +44,9 @@ class ChangeServer extends Component { | |||
44 | 44 | ||
45 | ferdiumServer = LIVE_FERDIUM_API; | 45 | ferdiumServer = LIVE_FERDIUM_API; |
46 | 46 | ||
47 | ferdiServer = LIVE_FERDI_API; | ||
48 | |||
49 | franzServer = LIVE_FRANZ_API; | 47 | franzServer = LIVE_FRANZ_API; |
50 | 48 | ||
51 | defaultServers = [this.ferdiumServer, this.franzServer, this.ferdiServer]; | 49 | defaultServers = [ this.ferdiumServer, this.franzServer ]; |
52 | 50 | ||
53 | form = (() => { | 51 | form = (() => { |
54 | const { intl } = this.props; | 52 | const { intl } = this.props; |
@@ -60,7 +58,6 @@ class ChangeServer extends Component { | |||
60 | options: [ | 58 | options: [ |
61 | { value: this.ferdiumServer, label: 'Ferdium (Default)' }, | 59 | { value: this.ferdiumServer, label: 'Ferdium (Default)' }, |
62 | { value: this.franzServer, label: 'Franz' }, | 60 | { value: this.franzServer, label: 'Franz' }, |
63 | { value: this.ferdiServer, label: 'Ferdi' }, | ||
64 | { | 61 | { |
65 | value: this.defaultServers.includes(this.props.server) | 62 | value: this.defaultServers.includes(this.props.server) |
66 | ? '' | 63 | ? '' |
@@ -114,7 +111,7 @@ class ChangeServer extends Component { | |||
114 | <form className="franz-form auth__form" onSubmit={e => this.submit(e)}> | 111 | <form className="franz-form auth__form" onSubmit={e => this.submit(e)}> |
115 | <Link to='/auth/welcome'><img src="./assets/images/logo.svg" className="auth__logo" alt="" /></Link> | 112 | <Link to='/auth/welcome'><img src="./assets/images/logo.svg" className="auth__logo" alt="" /></Link> |
116 | <H1>{intl.formatMessage(messages.headline)}</H1> | 113 | <H1>{intl.formatMessage(messages.headline)}</H1> |
117 | {(form.$('server').value === this.franzServer || form.$('server').value === this.ferdiServer) && ( | 114 | {(form.$('server').value === this.franzServer) && ( |
118 | <Infobox type="warning"> | 115 | <Infobox type="warning"> |
119 | {intl.formatMessage(messages.warning)} | 116 | {intl.formatMessage(messages.warning)} |
120 | </Infobox> | 117 | </Infobox> |