Fix Prettier again

Not sure how I missed a few files in the last commit
This commit is contained in:
Penar Musaraj 2019-11-15 10:52:06 -05:00
parent cc8baa1a7c
commit 6e74350f18
4 changed files with 10 additions and 6 deletions

View File

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

View File

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

View File

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

View File

@ -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"),