From 6e74350f18710a9b5cf3e5d91425ce7ba31795ce Mon Sep 17 00:00:00 2001 From: Penar Musaraj Date: Fri, 15 Nov 2019 10:52:06 -0500 Subject: [PATCH] Fix Prettier again Not sure how I missed a few files in the last commit --- .../javascripts/discourse/lib/push-notifications.js.es6 | 6 +++--- app/assets/javascripts/discourse/lib/transform-post.js.es6 | 3 ++- .../javascripts/discourse/widgets/topic-timeline.js.es6 | 3 ++- .../select-kit/components/composer-actions.js.es6 | 4 +++- 4 files changed, 10 insertions(+), 6 deletions(-) diff --git a/app/assets/javascripts/discourse/lib/push-notifications.js.es6 b/app/assets/javascripts/discourse/lib/push-notifications.js.es6 index 3d9e7baf3da..20040a8b110 100644 --- a/app/assets/javascripts/discourse/lib/push-notifications.js.es6 +++ b/app/assets/javascripts/discourse/lib/push-notifications.js.es6 @@ -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; diff --git a/app/assets/javascripts/discourse/lib/transform-post.js.es6 b/app/assets/javascripts/discourse/lib/transform-post.js.es6 index a3ff0060314..a0189345210 100644 --- a/app/assets/javascripts/discourse/lib/transform-post.js.es6 +++ b/app/assets/javascripts/discourse/lib/transform-post.js.es6 @@ -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 = diff --git a/app/assets/javascripts/discourse/widgets/topic-timeline.js.es6 b/app/assets/javascripts/discourse/widgets/topic-timeline.js.es6 index 82c38677a98..eedb6cf06ef 100644 --- a/app/assets/javascripts/discourse/widgets/topic-timeline.js.es6 +++ b/app/assets/javascripts/discourse/widgets/topic-timeline.js.es6 @@ -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( diff --git a/app/assets/javascripts/select-kit/components/composer-actions.js.es6 b/app/assets/javascripts/select-kit/components/composer-actions.js.es6 index bb4a578e34f..f42643f03c0 100644 --- a/app/assets/javascripts/select-kit/components/composer-actions.js.es6 +++ b/app/assets/javascripts/select-kit/components/composer-actions.js.es6 @@ -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"),