diff --git a/Gemfile.lock b/Gemfile.lock index 7e6369c..3a09fdc 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -14,6 +14,8 @@ GEM securerandom (>= 0.3) tzinfo (~> 2.0, >= 2.0.5) uri (>= 0.13.1) + addressable (2.8.9) + public_suffix (>= 2.0.2, < 8.0) ast (2.4.3) base64 (0.3.0) bigdecimal (4.0.1) @@ -22,26 +24,34 @@ GEM drb (2.2.3) i18n (1.14.8) concurrent-ruby (~> 1.0) - json (2.18.0) + json (2.19.1) + json-schema (6.2.0) + addressable (~> 2.8) + bigdecimal (>= 3.1, < 5) language_server-protocol (3.17.0.5) lint_roller (1.1.0) logger (1.7.0) - minitest (6.0.1) + mcp (0.8.0) + json-schema (>= 4.1) + minitest (6.0.2) + drb (~> 2.0) prism (~> 1.5) parallel (1.27.0) - parser (3.3.10.1) + parser (3.3.10.2) ast (~> 2.4.1) racc prettier_print (1.2.1) - prism (1.8.0) + prism (1.9.0) + public_suffix (7.0.5) racc (1.8.1) rack (3.2.5) rainbow (3.1.1) regexp_parser (2.11.3) - rubocop (1.84.0) + rubocop (1.85.1) json (~> 2.3) language_server-protocol (~> 3.17.0.2) lint_roller (~> 1.1.0) + mcp (~> 0.6) parallel (~> 1.10) parser (>= 3.3.0.2) rainbow (>= 2.2.2, < 4.0) @@ -49,7 +59,7 @@ GEM rubocop-ast (>= 1.49.0, < 2.0) ruby-progressbar (~> 1.7) unicode-display_width (>= 2.4.0, < 4.0) - rubocop-ast (1.49.0) + rubocop-ast (1.49.1) parser (>= 3.3.7.2) prism (~> 1.7) rubocop-capybara (2.22.1) @@ -102,4 +112,4 @@ DEPENDENCIES syntax_tree BUNDLED WITH - 4.0.4 + 4.0.8 diff --git a/javascripts/discourse/components/topic-in-gated-category.gjs b/javascripts/discourse/components/topic-in-gated-category.gjs index bb8aac5..25bbc5d 100644 --- a/javascripts/discourse/components/topic-in-gated-category.gjs +++ b/javascripts/discourse/components/topic-in-gated-category.gjs @@ -1,8 +1,9 @@ +/* eslint-disable ember/no-classic-components */ import Component from "@ember/component"; +import { computed } from "@ember/object"; import { tagName } from "@ember-decorators/component"; import DButton from "discourse/components/d-button"; import routeAction from "discourse/helpers/route-action"; -import discourseComputed from "discourse/lib/decorators"; import { i18n } from "discourse-i18n"; @tagName("") @@ -55,9 +56,9 @@ export default class TopicInGatedCategory extends Component { } } - @discourseComputed("hidden") - shouldShow(hidden) { - return !hidden; + @computed("hidden") + get shouldShow() { + return !this.hidden; }