Fixing merge conflicts.

This commit is contained in:
Dessalines 2019-08-09 17:19:09 -07:00
commit 9436a1724d
3 changed files with 3 additions and 4 deletions

View File

@ -101,7 +101,7 @@ impl Perform<CommentResponse> for Oper<CreateComment> {
let _inserted_like = match CommentLike::like(&conn, &like_form) {
Ok(like) => like,
Err(_e) => {
return Err(APIError::err(&self.op, ""))?
return Err(APIError::err(&self.op, "couldnt_like_comment"))?
}
};

View File

@ -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();
}

View File

@ -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>