mirror of
https://github.com/discourse/discourse.git
synced 2025-01-18 16:42:46 +08:00
505d8b52b8
It'd be useful in cases like: ```gjs get flagNames() { return this.flags?.map((flag) => flag && `flag-${flag.name}`); // w/o this change you'd have to handle it here: // return this.flags?.map((flag) => flag && `flag-${flag.name}`).filter(Boolean).join(" "); } <template> <span class={{concatClass "gadget" this.flagNames}}> {{! …or here: }} <span class={{concatClass "gadget" (concatClass this.flagNames)}}> ``` (also: replaces ember's `compact()` with `filter(Boolean)`) |
||
---|---|---|
.. | ||
admin | ||
custom-proxy | ||
deprecation-silencer | ||
dialog-holder | ||
discourse | ||
discourse-common | ||
discourse-hbr | ||
discourse-i18n | ||
discourse-markdown-it | ||
discourse-plugins | ||
discourse-widget-hbs | ||
docs | ||
ember-addons | ||
ember-cli-progress-ci | ||
ember-production-deprecations | ||
float-kit | ||
locales | ||
pretty-text | ||
select-kit | ||
theme-transpiler | ||
truth-helpers | ||
.npmrc | ||
handlebars-shim.js | ||
polyfills.js | ||
run-patch-package | ||
service-worker.js.erb |