discourse/app/assets/javascripts
Kelv 2968fb6a5c
FIX: Render user profile trust level name for TL0 (#22740)
* Why was this change necessary?
The current logic in the user.hbs template file does not render the
trust level element for the user's info panel when the user is TL0,
because 0 is treated as falsey in the `if` conditional block.

Ref: https://meta.discourse.org/t/tl0-not-displayed-on-users-profile-pages/271779/10

* How does it address the problem?

This PR adds a predicate helper method local to the user controller that
includes an additional check which returns true if the trust_level of
the user is 0 on top of the existing logic. This allows TL0 users to
have their trust level rendered correctly in their profile's info panel.
2023-07-21 15:16:34 +08:00
..
admin DEV: Convert admin-incoming-email modal to component-based API (#22701) 2023-07-20 16:31:20 -05:00
bootstrap-json DEV: Improve ember-cli 'LOAD_PLUGINS' behavior (#22590) 2023-07-13 11:27:29 +01:00
confirm-new-email DEV: Add error message styling (#21225) 2023-04-25 08:40:18 -04:00
deprecation-silencer DEV: move deprecation silencer to a shared package (#22668) 2023-07-18 19:07:20 +01:00
dialog-holder Build(deps-dev): Bump webpack in /app/assets/javascripts (#22662) 2023-07-18 11:35:46 +02:00
discourse FIX: Render user profile trust level name for TL0 (#22740) 2023-07-21 15:16:34 +08:00
discourse-common DEV: introduce Ember <template> tag support (.gjs) (#22719) 2023-07-20 21:01:12 +01:00
discourse-hbr Build(deps-dev): Bump webpack in /app/assets/javascripts (#22662) 2023-07-18 11:35:46 +02:00
discourse-plugins DEV: introduce Ember <template> tag support (.gjs) (#22719) 2023-07-20 21:01:12 +01:00
discourse-widget-hbs Build(deps-dev): Bump webpack in /app/assets/javascripts (#22662) 2023-07-18 11:35:46 +02:00
docs
ember-addons
ember-cli-progress-ci
ember-production-deprecations DEV: Clean up package.json files (#22349) 2023-06-30 13:01:45 +02:00
locales UX/DEV: Review queue redesign fixes (#20239) 2023-03-02 16:40:53 +01:00
patches DEV: Update ember-cli to 5.0.0 (#22280) 2023-06-26 17:15:59 +02:00
pretty-text Build(deps-dev): Bump webpack in /app/assets/javascripts (#22662) 2023-07-18 11:35:46 +02:00
select-kit Build(deps-dev): Bump webpack in /app/assets/javascripts (#22662) 2023-07-18 11:35:46 +02:00
truth-helpers Build(deps-dev): Bump webpack in /app/assets/javascripts (#22662) 2023-07-18 11:35:46 +02:00
wizard DEV: Revert "DEV: Update replaceWith on Route (#22645)" (#22693) 2023-07-19 10:47:31 -05:00
.licensee.json DEV: Update sub-dependencies (#22325) 2023-06-29 17:08:33 +02: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: move deprecation silencer to a shared package (#22668) 2023-07-18 19:07:20 +01:00
polyfills.js
service-worker.js.erb FIX: Attempt to reconnect to server when browser visibilty changes (#22259) 2023-06-23 11:32:34 -05:00
yarn.lock Build(deps-dev): Bump sass in /app/assets/javascripts (#22723) 2023-07-20 22:30:13 +02:00