docbrown/app/assets/javascripts/initializers
Daniel Uber dc35f8ed24
Remove optional chaining syntax from comments page initializer (#15277)
* Remove questionable syntax from comments initializer

Not sure what ?. is, changing to . to placate the asset precompiler

* Restore conditional access

Rather than changing the ?. to ., wrap the chained access in a guard
clause.

* Fix error in logic

First pass had wrapped this in an "if currentUser" which caused the
else block only to hide comments when no user was logged in, however
the actual behavior should have been to hide comments unless current
user was an article author.
2021-11-03 12:04:28 -05:00
..
initializeAllChatButtons.js Use faster JS selection methods (#11409) 2020-11-16 17:35:50 +01:00
initializeAllTagEditButtons.js Ran prettier on *.js, *.jsx and *.md files. (#11586) 2020-11-23 20:45:50 -05:00
initializeArchivedPostFilter.js Fixes archived button in dashboard for PWA (#8930) 2020-06-26 11:26:12 -04:00
initializeArticleDate.js Ran prettier on *.js, *.jsx and *.md files. (#11586) 2020-11-23 20:45:50 -05:00
initializeArticleReactions.js Zappat0n/add rate limit model everywhere 11500 (#14609) 2021-09-23 10:49:19 +01:00
initializeBaseTracking.js.erb [Tiny fix] Fix a couple small bugs from DisplayAd clean up (#14846) 2021-09-28 15:51:30 -04:00
initializeBaseUserData.js Article layout (#14753) 2021-09-30 19:08:06 +02:00
initializeBodyData.js Creator Onboarding: Creator Setup View (#14728) 2021-11-01 15:50:08 -04:00
initializeBroadcast.js Hide active broadcasts from /connect routes (#10312) 2020-09-14 11:28:18 +02:00
initializeColorPicker.js Move the color picker to its own initializer file (#11693) 2020-12-01 15:34:44 +02:00
initializeCommentDate.js Fix lint in initializeCommentDate.js (#4319) [ci skip] 2019-10-09 14:33:52 -04:00
initializeCommentPreview.js Fixed twitter timeline display in comments preview (#12542) 2021-02-15 17:09:18 +01:00
initializeCommentsPage.js.erb Remove optional chaining syntax from comments page initializer (#15277) 2021-11-03 12:04:28 -05:00
initializeCreditsPage.js Refactor: initializeCreditsPage.js (#4312) [ci skip] 2019-10-08 12:33:28 -04:00
initializeDashboardSort.js [deploy] Dashboard updates (#8879) 2020-06-25 13:10:17 -04:00
initializeDateTimeHelpers.js [deploy] Add local_date helper to handle dates with respect of user timezone (#9285) 2020-07-16 08:45:44 -06:00
initializeDrawerSliders.js Remove swipe gestures and other unnecessary code (#12027) 2020-12-30 12:17:29 -05:00
initializeHeroBannerClose.js Add missing aria label for campaign close button (#12489) 2021-01-29 17:51:18 -05:00
initializeLocalStorageRender.js Use a single listener for all follow buttons on a page (#14246) 2021-07-27 10:45:50 +01:00
initializeOnboardingTaskCard.js Fix TypeError: userData is null in initializeOnboardingTaskCard.js (#9298) [deploy] 2020-07-14 07:32:57 -07:00
initializePaymentPointers.js Check for meta payment pointer first before attempting to load (#9722) 2020-08-10 18:12:48 -04:00
initializePodcastPlayback.js Make podcast-playback to be controllable via keyboard (#14139) 2021-08-20 12:45:53 +02:00
initializePWAFunctionality.js Ran prettier on *.js, *.jsx and *.md files. (#11586) 2020-11-23 20:45:50 -05:00
initializeReadingListIcons.js [15 min fix] Update flaky test in loggedOutFlows (#14271) 2021-07-19 15:25:41 +02:00
initializeSettings.js Layout updates (#8107) 2020-06-04 16:12:17 +02:00
initializeSpecialNavigationFunctionality.js CSS Cleanups, part 2 (#10527) 2020-10-03 06:57:57 +02:00
initializeSponsorshipVisibility.js Use a single listener for all follow buttons on a page (#14246) 2021-07-27 10:45:50 +01:00
initializeTimeFixer.js Ran prettier on *.js, *.jsx and *.md files. (#11586) 2020-11-23 20:45:50 -05:00
initializeUserProfilePage.js Optimise dropdowns for accessibility - Profile page (#13916) 2021-06-14 12:31:23 +01:00
initializeVideoPlayback.js Podcast + Video player native bridge small refactor (#11345) 2020-11-10 07:36:05 -06:00
initNotifications.js Zappat0n/add rate limit model everywhere 11500 (#14609) 2021-09-23 10:49:19 +01:00
initScrolling.js Videos UI update (#15177) 2021-10-28 09:34:44 +02:00
runtime.js treat cmd and ctrl key shortcuts separately on macOS (#15265) 2021-11-03 11:54:15 +00:00