mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-10-01 01:36:12 -04:00
Fixing merge conflicts.
This commit is contained in:
commit
9436a1724d
@ -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"))?
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -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();
|
||||
}
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user