diff options
author | vantezzen <properly@protonmail.com> | 2019-08-28 12:10:34 +0200 |
---|---|---|
committer | vantezzen <properly@protonmail.com> | 2019-08-28 12:10:34 +0200 |
commit | f28399634079ccdcb51d33cb9e3a8a5d75cc6923 (patch) | |
tree | 640aded438ad1e5f586aeb53e190bf59eceb7584 /src/components/auth/Login.js | |
parent | Add more custom branding (diff) | |
download | ferdium-app-f28399634079ccdcb51d33cb9e3a8a5d75cc6923.tar.gz ferdium-app-f28399634079ccdcb51d33cb9e3a8a5d75cc6923.tar.zst ferdium-app-f28399634079ccdcb51d33cb9e3a8a5d75cc6923.zip |
Add suggestion to import Franz account
Diffstat (limited to 'src/components/auth/Login.js')
-rw-r--r-- | src/components/auth/Login.js | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/components/auth/Login.js b/src/components/auth/Login.js index ef6176110..8777b00f8 100644 --- a/src/components/auth/Login.js +++ b/src/components/auth/Login.js | |||
@@ -137,7 +137,18 @@ export default @observer class Login extends Component { | |||
137 | showPasswordToggle | 137 | showPasswordToggle |
138 | /> | 138 | /> |
139 | {error.code === 'invalid-credentials' && ( | 139 | {error.code === 'invalid-credentials' && ( |
140 | <p className="error-message center">{intl.formatMessage(messages.invalidCredentials)}</p> | 140 | <> |
141 | <p className="error-message center">{intl.formatMessage(messages.invalidCredentials)}</p> | ||
142 | { window.ferdi.stores.settings.all.app.server !== 'https://api.franzinfra.com' && ( | ||
143 | <p className="error-message center"> | ||
144 | Using a custom Ferdi server? Try{' '} | ||
145 | <Link | ||
146 | to={ window.ferdi.stores.settings.all.app.server.replace('v1', '') + '/import' } | ||
147 | target="_blank" | ||
148 | style={{ cursor: 'pointer', textDecoration: 'underline' }}>importing your Franz account</Link> | ||
149 | </p> | ||
150 | )} | ||
151 | </> | ||
141 | )} | 152 | )} |
142 | {isSubmitting ? ( | 153 | {isSubmitting ? ( |
143 | <Button | 154 | <Button |