* 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> |
||
|---|---|---|
| .. | ||
| initializers | ||
| lib | ||
| utilities | ||
| .eslintrc.js | ||
| application.js | ||
| base.js.erb | ||
| initializePage.js | ||
| internal.js | ||
| jquery_s3_upload.js | ||
| serviceworker-companion.js | ||