diff options
author | Dessalines <tyhou13@gmx.com> | 2019-08-09 17:15:27 -0700 |
---|---|---|
committer | Dessalines <tyhou13@gmx.com> | 2019-08-09 17:15:27 -0700 |
commit | c494fe8e9b29b81d41145f39351710852e5024d4 (patch) | |
tree | ad673cf5d5208c962b962951da95e300e5dc1f0a /ui | |
parent | e702618e259b286590d3dfab481274c90409f73e (diff) |
Making a few internationalization fixes.
Diffstat (limited to 'ui')
-rw-r--r-- | ui/src/components/navbar.tsx | 3 | ||||
-rw-r--r-- | ui/src/components/post-form.tsx | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/ui/src/components/navbar.tsx b/ui/src/components/navbar.tsx index 5738483d..7a173bed 100644 --- a/ui/src/components/navbar.tsx +++ b/ui/src/components/navbar.tsx @@ -155,8 +155,7 @@ export class Navbar extends Component<any, NavbarState> { parseMessage(msg: any) { let op: UserOperation = msgOp(msg); if (msg.error) { - // TODO - if (msg.error == "Not logged in.") { + if (msg.error == "not_logged_in") { UserService.Instance.logout(); location.reload(); } diff --git a/ui/src/components/post-form.tsx b/ui/src/components/post-form.tsx index 8aa7a5ea..79d37b42 100644 --- a/ui/src/components/post-form.tsx +++ b/ui/src/components/post-form.tsx @@ -131,7 +131,7 @@ export class PostForm extends Component<PostFormProps, PostFormState> { <button type="submit" class="btn btn-secondary mr-2"> {this.state.loading ? <svg class="icon icon-spinner spin"><use xlinkHref="#icon-spinner"></use></svg> : - this.props.post ? capitalizeFirstLetter(i18n.t('save')) : capitalizeFirstLetter(i18n.t('Create'))}</button> + this.props.post ? capitalizeFirstLetter(i18n.t('save')) : capitalizeFirstLetter(i18n.t('create'))}</button> {this.props.post && <button type="button" class="btn btn-secondary" onClick={linkEvent(this, this.handleCancel)}><T i18nKey="cancel">#</T></button>} </div> </div> |