mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-11-30 00:01:15 +00:00
Fixing PR comments.
This commit is contained in:
parent
655310d6e6
commit
b5ef4db621
1 changed files with 11 additions and 14 deletions
|
@ -428,7 +428,7 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
|
||||||
<span className="mx-1 badge text-bg-light">
|
<span className="mx-1 badge text-bg-light">
|
||||||
{
|
{
|
||||||
this.props.allLanguages.find(
|
this.props.allLanguages.find(
|
||||||
lang => lang.id === post_view.post.language_id
|
lang => lang.id === post_view.post.language_id,
|
||||||
)?.name
|
)?.name
|
||||||
}
|
}
|
||||||
</span>
|
</span>
|
||||||
|
@ -524,7 +524,7 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
|
||||||
<small
|
<small
|
||||||
className="unselectable pointer ms-2 text-muted fst-italic"
|
className="unselectable pointer ms-2 text-muted fst-italic"
|
||||||
data-tippy-content={I18NextService.i18n.t(
|
data-tippy-content={I18NextService.i18n.t(
|
||||||
"featured_in_community"
|
"featured_in_community",
|
||||||
)}
|
)}
|
||||||
aria-label={I18NextService.i18n.t("featured_in_community")}
|
aria-label={I18NextService.i18n.t("featured_in_community")}
|
||||||
>
|
>
|
||||||
|
@ -745,14 +745,11 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
|
||||||
}
|
}
|
||||||
|
|
||||||
public get linkTarget(): string {
|
public get linkTarget(): string {
|
||||||
if (
|
return UserService.Instance.myUserInfo?.local_user_view.local_user
|
||||||
UserService.Instance.myUserInfo?.local_user_view.local_user
|
|
||||||
.open_links_in_new_tab
|
.open_links_in_new_tab
|
||||||
) {
|
? "_blank"
|
||||||
return "_blank";
|
: // _self is the default target on links when the field is not specified
|
||||||
}
|
"_self";
|
||||||
// _self is the default target on links when the field is not specified
|
|
||||||
return "_self";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
get commentsButton() {
|
get commentsButton() {
|
||||||
|
@ -1136,7 +1133,7 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
|
||||||
className="btn btn-link btn-sm d-flex align-items-center rounded-0 dropdown-item"
|
className="btn btn-link btn-sm d-flex align-items-center rounded-0 dropdown-item"
|
||||||
onClick={linkEvent(
|
onClick={linkEvent(
|
||||||
this,
|
this,
|
||||||
!removed ? this.handleModRemoveShow : this.handleModRemoveSubmit
|
!removed ? this.handleModRemoveShow : this.handleModRemoveSubmit,
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
{/* TODO: Find an icon for this. */}
|
{/* TODO: Find an icon for this. */}
|
||||||
|
@ -1209,7 +1206,7 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
|
||||||
className="btn btn-link btn-animate text-muted py-0 d-inline-block"
|
className="btn btn-link btn-animate text-muted py-0 d-inline-block"
|
||||||
onClick={linkEvent(
|
onClick={linkEvent(
|
||||||
this,
|
this,
|
||||||
this.handleCancelShowConfirmTransferCommunity
|
this.handleCancelShowConfirmTransferCommunity,
|
||||||
)}
|
)}
|
||||||
aria-label={I18NextService.i18n.t("no")}
|
aria-label={I18NextService.i18n.t("no")}
|
||||||
>
|
>
|
||||||
|
@ -1793,7 +1790,7 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
|
||||||
this.props.moderators,
|
this.props.moderators,
|
||||||
this.props.admins,
|
this.props.admins,
|
||||||
undefined,
|
undefined,
|
||||||
true
|
true,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1801,7 +1798,7 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
|
||||||
return canMod(
|
return canMod(
|
||||||
this.postView.creator.id,
|
this.postView.creator.id,
|
||||||
this.props.moderators,
|
this.props.moderators,
|
||||||
this.props.admins
|
this.props.admins,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue