docbrown/app
Nizar 7058d628af
Added Copy Permalink Functionality to Comment Dropdown (#8311)
* Added Copy Permalink Functionality to Comment Dropdown

Copy functionality is similar to the way 'copy article link' is implemented. It checks for the android bridge first, then the navigator, then fallsback to the default document copy command

Since the codes were really similar, I moved the copy functionality to a function of its own with callbacks and fallbacks as lambdas, and triggered it with the copyArticleLink and the copyPermalink

* Replaced Copy Permalink Callbacks with Promises

* Keep anchor tags instead of buttons (#1)

* copy permalink using anchor tag

* Missing closing button tag

* Adds 'Copied to Clipboard' Snackbar Message

* Patches bug introduced in #10323

Patch suggested in following comment: https://github.com/forem/forem/pull/8311\#pullrequestreview-492011202

* Removes import statement for addSnackbarItem and Suppresses ESLint Error

Initializer runs in global scope

* Unhandles exception when copying permalink so Honeybadger can handle it

* Replaces ButtonListener suffix for copyPermalink method with Listener

Co-authored-by: Fernando Valverde <fernando@visualcosita.com>
2020-11-11 08:32:10 -05:00
..
assets Added Copy Permalink Functionality to Comment Dropdown (#8311) 2020-11-11 08:32:10 -05:00
black_box Small adjustment to blackbox.rb (#10961) 2020-10-20 21:14:56 -04:00
controllers Update shell version when admin action taken (#11343) 2020-11-09 15:31:54 -05:00
dashboards Add registered fields to resource_admin (#10941) 2020-10-19 17:50:34 -04:00
decorators CSS Cleanups, part 2 (#10527) 2020-10-03 06:57:57 +02:00
errors [deploy] Add contexts and permissions to liquid tags (#8917) 2020-06-30 14:53:18 -04:00
fields Enables Rails cops (#2186) 2019-03-25 09:25:55 -04:00
helpers [Team Email Login] Refactor Authentication Provider Enable/Disable (#11185) 2020-11-06 18:19:34 -05:00
javascript A11y: Add keyboard navigation to article feed (#10468) 2020-11-10 22:38:15 -05:00
labor Add trusted role to new tag moderators (#11242) 2020-11-05 10:36:26 -05:00
lib Fix typo in placeholder anti-spam terms (#11360) 2020-11-10 15:36:52 -05:00
liquid_tags Introduce tweet_timeline liquid tag (#7605) (#10825) 2020-10-30 11:03:40 +01:00
mailers Add config option for Forem collective noun (#11107) 2020-10-27 12:45:52 -04:00
middlewares Move TimeZoneSetter middleware in proper place (#11336) 2020-11-09 17:11:10 +01:00
models Flip values of email digest min/max (#11359) 2020-11-10 15:35:48 -05:00
policies [deploy] Disable ability to upload videos on *some* forems Part 2 (#10955) 2020-10-20 17:33:35 +02:00
queries/admin Filter by a few other roles when adding potential mods (#11187) 2020-11-02 15:05:19 -05:00
refinements Update data exporter to handle admin send (#10274) 2020-10-26 18:00:56 -04:00
sanitizers [deploy] Rubocop: fix violations of Layout/LineLength (#9197) 2020-07-08 08:36:36 -05:00
serializers [deploy] Refactor:Remove Reaction Search Code (#10377) 2020-09-23 12:27:50 -05:00
services Refactor:Remove more_experience_level_weight_experiment From Feed Tests (#11340) 2020-11-09 13:59:59 -06:00
uploaders [deploy] Bug Fix: Validate GIFs Frames and Add MiniMagick Timeout (#9319) 2020-07-15 09:49:24 -05:00
view_objects [deploy] Enable admin-configured app_domain (#10206) 2020-09-11 09:38:34 -04:00
views Added Copy Permalink Functionality to Comment Dropdown (#8311) 2020-11-11 08:32:10 -05:00
workers Add users param to Feeds::Import (#11234) 2020-11-03 07:02:17 -06:00