discourse/app/assets/javascripts
Loïc Guitaut 1166db12b4
FIX: Make watched words uploads work as intended (#17097)
* FIX: Make watched words uploads work as intended

Currently when we upload a file containing watched words, it will always
add the words to the action that was initially selected: this is the
`block` action by default but if changing manually the action in the URL
to `flag` for example, then this action will be selected and uploaded
watched words will be categorised as `flag` no matter what.

The problem lies with how the component works: it’s an Uppy object where
extra data is defined to provide an action key to the server but when
navigating to another listed action, while this action key is properly
updated on the component itself, the underlying Uppy object has already
been created and doesn’t care about the new value.

This patch solves this by using the `_perFileData` method instead of
`data`: the former is merged just before uploading a file whereas the
latter is used when the Uppy object is created.
2022-06-17 11:07:58 +02:00
..
admin FIX: Make watched words uploads work as intended (#17097) 2022-06-17 11:07:58 +02:00
confirm-new-email
discourse FIX: Make watched words uploads work as intended (#17097) 2022-06-17 11:07:58 +02:00
discourse-common DEV: Add escapeRegExp util (#17051) 2022-06-10 10:37:54 +10:00
discourse-hbr DEV: Update ember-try to 2.0.0 (#16606) 2022-05-03 11:04:16 -04:00
discourse-widget-hbs DEV: Update ember-try to 2.0.0 (#16606) 2022-05-03 11:04:16 -04:00
docs
ember-addons
locales DEV: add translation fallback option for i18n 2022-06-10 11:10:05 -10:00
pretty-text FIX: Apply 'allowed_href_schemes' to all src/srcset attributes (#16860) 2022-05-19 11:18:30 +01:00
select-kit FIX: whisper available when reply to topic (#17054) 2022-06-15 09:59:57 +10:00
truth-helpers DEV: Update ember-try to 2.0.0 (#16606) 2022-05-03 11:04:16 -04:00
wizard DEV: Remove unused wizard code (#17016) 2022-06-06 21:01:47 +02:00
.licensee.json DEV: Add Ember CLI workspace license checks (#16603) 2022-05-03 13:06:19 -04:00
.npmrc
activate-account.js
admin-plugins.js.erb FIX: When using Ember CLI, plugin admin code was not being loaded in tests (#16239) 2022-03-21 15:46:41 -04:00
admin.js FIX: When using Ember CLI, plugin admin code was not being loaded in tests (#16239) 2022-03-21 15:46:41 -04:00
app-boot.js DEV: Disallow Ember global usage (#16147) 2022-03-09 17:54:07 +01:00
application.js
auto-redirect.js
browser-detect.js DEV: Add polyfill for String.prototype.replaceAll (#16301) 2022-03-28 17:18:56 +01:00
browser-update.js UX: Make header/footer HTML consistent for crawler and noscript 2022-04-07 15:27:06 +01:00
discourse-loader.js FIX: Ember test imports, again (#16203) 2022-03-16 17:12:15 +01:00
discourse-shims.js FIX: uses tippy for popover (#15409) 2022-05-02 17:10:26 +02:00
embed-application.js
ember_include.js.erb DEV: Support for running theme test with Ember CLI (third attempt) 2022-01-13 16:02:07 -05:00
ember_jquery.js
env.js
google-tag-manager.js
google-universal-analytics-v3.js
google-universal-analytics-v4.js
handlebars-shim.js
main_include_admin.js DEV: Remove old backup uploader and resumable.js (#15365) 2021-12-21 15:02:10 +10:00
markdown-it-bundle.js
onpopstate-handler.js
package.json
polyfills.js DEV: Add polyfill for String.prototype.replaceAll (#16301) 2022-03-28 17:18:56 +01:00
pretty-text-bundle.js DEV: Remove deprecated pretty-text functions/file (#16397) 2022-04-06 22:48:50 +02:00
print-page.js
service-worker.js.erb FIX: Disable service worker proxying in chrome 97-97.0.4692 (#15638) 2022-01-18 19:41:25 +00:00
set-prototype-polyfill.js
start-discourse.js
template_include.js
test-shims.js FIX: Ember test imports, again (#16203) 2022-03-16 17:12:15 +01:00
vendor-common.js FIX: uses tippy for popover (#15409) 2022-05-02 17:10:26 +02:00
vendor-theme-tests.js DEV: Support for running theme test with Ember CLI (third attempt) 2022-01-13 16:02:07 -05:00
vendor.js DEV: Support for running theme test with Ember CLI (third attempt) 2022-01-13 16:02:07 -05:00
widget-runtime.js
wizard-application.js
wizard-shims.js FIX: uses tippy for popover (#15409) 2022-05-02 17:10:26 +02:00
wizard-start.js
wizard-vendor.js FIX: uses tippy for popover (#15409) 2022-05-02 17:10:26 +02:00
yarn.lock DEV: Update ember-try to 2.0.0 (#16606) 2022-05-03 11:04:16 -04:00