mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-11-22 20:31:13 +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">
|
||||
{
|
||||
this.props.allLanguages.find(
|
||||
lang => lang.id === post_view.post.language_id
|
||||
lang => lang.id === post_view.post.language_id,
|
||||
)?.name
|
||||
}
|
||||
</span>
|
||||
|
@ -524,7 +524,7 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
|
|||
<small
|
||||
className="unselectable pointer ms-2 text-muted fst-italic"
|
||||
data-tippy-content={I18NextService.i18n.t(
|
||||
"featured_in_community"
|
||||
"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 {
|
||||
if (
|
||||
UserService.Instance.myUserInfo?.local_user_view.local_user
|
||||
.open_links_in_new_tab
|
||||
) {
|
||||
return "_blank";
|
||||
}
|
||||
// _self is the default target on links when the field is not specified
|
||||
return "_self";
|
||||
return UserService.Instance.myUserInfo?.local_user_view.local_user
|
||||
.open_links_in_new_tab
|
||||
? "_blank"
|
||||
: // _self is the default target on links when the field is not specified
|
||||
"_self";
|
||||
}
|
||||
|
||||
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"
|
||||
onClick={linkEvent(
|
||||
this,
|
||||
!removed ? this.handleModRemoveShow : this.handleModRemoveSubmit
|
||||
!removed ? this.handleModRemoveShow : this.handleModRemoveSubmit,
|
||||
)}
|
||||
>
|
||||
{/* 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"
|
||||
onClick={linkEvent(
|
||||
this,
|
||||
this.handleCancelShowConfirmTransferCommunity
|
||||
this.handleCancelShowConfirmTransferCommunity,
|
||||
)}
|
||||
aria-label={I18NextService.i18n.t("no")}
|
||||
>
|
||||
|
@ -1793,7 +1790,7 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
|
|||
this.props.moderators,
|
||||
this.props.admins,
|
||||
undefined,
|
||||
true
|
||||
true,
|
||||
);
|
||||
}
|
||||
|
||||
|
@ -1801,7 +1798,7 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
|
|||
return canMod(
|
||||
this.postView.creator.id,
|
||||
this.props.moderators,
|
||||
this.props.admins
|
||||
this.props.admins,
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue