discourse/app/assets/javascripts
Ted Johansson 1b132dad0d
FIX: Correctly pre-select first option in bookmark notification drop-down (#20976)
When selecting the "Keep bookmark" in the user preference for what to do after a bookmark reminder is sent, it does not propagate to the drop-down in the "Create bookmark" modal. Instead it defaults to "Keep bookmark and clear reminder". All other options work fine.

We set a default ("Keep bookmark and clear reminder") if no user preference is found, However, this uses the index of the option, and the index of the first option ("Keep bookmark") is 0, which is treated as falsey in JavaScript, thus causing the default to be selected.

This change switches from logical "or" conditional `||` operator to nullish coalescing `??` operator.
2023-04-06 14:58:40 +08:00
..
admin FIX: Show better default error when failing to delete all user posts (#20985) 2023-04-05 14:26:00 -05:00
bootstrap-json Build(deps): Bump node-fetch from 3.3.0 to 3.3.1 in /app/assets/javascripts (#20655) 2023-03-13 08:45:43 +08:00
confirm-new-email
dialog-holder Build(deps): Bump ember-auto-import in /app/assets/javascripts (#20970) 2023-04-05 12:43:21 +02:00
discourse FIX: Correctly pre-select first option in bookmark notification drop-down (#20976) 2023-04-06 14:58:40 +08:00
discourse-common Build(deps): Bump ember-auto-import in /app/assets/javascripts (#20970) 2023-04-05 12:43:21 +02:00
discourse-hbr Build(deps): Bump ember-auto-import in /app/assets/javascripts (#20970) 2023-04-05 12:43:21 +02:00
discourse-plugins Build(deps): Bump ember-auto-import in /app/assets/javascripts (#20970) 2023-04-05 12:43:21 +02:00
discourse-widget-hbs Build(deps): Bump ember-auto-import in /app/assets/javascripts (#20970) 2023-04-05 12:43:21 +02:00
docs
ember-addons
ember-cli-progress-ci
ember-production-deprecations DEV: Include ember deprecation messages in production builds (#20587) 2023-03-10 10:37:28 +00:00
locales UX/DEV: Review queue redesign fixes (#20239) 2023-03-02 16:40:53 +01:00
pretty-text Build(deps): Bump ember-auto-import in /app/assets/javascripts (#20970) 2023-04-05 12:43:21 +02:00
select-kit Build(deps): Bump ember-auto-import in /app/assets/javascripts (#20970) 2023-04-05 12:43:21 +02:00
truth-helpers Build(deps): Bump ember-auto-import in /app/assets/javascripts (#20970) 2023-04-05 12:43:21 +02:00
wizard Build(deps): Bump ember-auto-import in /app/assets/javascripts (#20970) 2023-04-05 12:43:21 +02:00
.licensee.json DEV: Have licensee check xmldom license (#18840) 2022-11-02 11:51:11 -04:00
.npmrc
discourse-js-processor.js DEV: Update ember-cli-htmlbars to 6.2.0 (#20467) 2023-02-27 18:43:28 +01:00
handlebars-shim.js
package.json DEV: Update browserslist (#20846) 2023-03-27 19:15:04 +02:00
polyfills.js Drop support for iOS < 15.7 (#19847) 2023-01-16 17:28:59 +00:00
service-worker.js.erb FEATURE: Enable service worker for Apple devices (#19643) 2023-01-30 13:23:19 -03:00
yarn.lock Build(deps): Bump ember-auto-import in /app/assets/javascripts (#20970) 2023-04-05 12:43:21 +02:00