Fix Prettier again
Not sure how I missed a few files in the last commit
This commit is contained in:
parent
cc8baa1a7c
commit
6e74350f18
|
@ -50,9 +50,9 @@ export function isPushNotificationsSupported(mobileView) {
|
|||
!(
|
||||
"serviceWorker" in navigator &&
|
||||
ServiceWorkerRegistration &&
|
||||
typeof Notification !== "undefined" &&
|
||||
"showNotification" in ServiceWorkerRegistration.prototype &&
|
||||
"PushManager" in window
|
||||
typeof Notification !== "undefined" &&
|
||||
"showNotification" in ServiceWorkerRegistration.prototype &&
|
||||
"PushManager" in window
|
||||
)
|
||||
) {
|
||||
return false;
|
||||
|
|
|
@ -239,7 +239,8 @@ export default function transformPost(
|
|||
postAtts.showFlagDelete =
|
||||
!postAtts.canDelete &&
|
||||
postAtts.yours &&
|
||||
currentUser && !currentUser.staff;
|
||||
currentUser &&
|
||||
!currentUser.staff;
|
||||
} else {
|
||||
postAtts.canRecover = postAtts.isDeleted && postAtts.canRecover;
|
||||
postAtts.canDelete =
|
||||
|
|
|
@ -211,7 +211,8 @@ createWidget("timeline-scrollarea", {
|
|||
position.lastRead > 3 &&
|
||||
Math.abs(position.lastRead - position.current) > 3 &&
|
||||
Math.abs(position.lastRead - position.total) > 1 &&
|
||||
position.lastRead && position.lastRead !== position.total;
|
||||
position.lastRead &&
|
||||
position.lastRead !== position.total;
|
||||
|
||||
if (hasBackPosition) {
|
||||
const lastReadTop = Math.round(
|
||||
|
|
|
@ -132,7 +132,9 @@ export default DropdownSelectBoxComponent.extend({
|
|||
(action !== REPLY && _topicSnapshot) ||
|
||||
(action === REPLY &&
|
||||
_topicSnapshot &&
|
||||
options.userAvatar && options.userLink && options.topicLink)
|
||||
options.userAvatar &&
|
||||
options.userLink &&
|
||||
options.topicLink)
|
||||
) {
|
||||
items.push({
|
||||
name: I18n.t("composer.composer_actions.reply_to_topic.label"),
|
||||
|
|
Loading…
Reference in New Issue