diff --git a/javascripts/discourse/components/kanban/card.gjs b/javascripts/discourse/components/kanban/card.gjs index 8e2255a..d19c1de 100644 --- a/javascripts/discourse/components/kanban/card.gjs +++ b/javascripts/discourse/components/kanban/card.gjs @@ -3,7 +3,7 @@ import { tracked } from "@glimmer/tracking"; import { hash } from "@ember/helper"; import { on } from "@ember/modifier"; import { action } from "@ember/object"; -import { inject as service } from "@ember/service"; +import { service } from "@ember/service"; import { htmlSafe } from "@ember/template"; import PluginOutlet from "discourse/components/plugin-outlet"; import TopicStatus from "discourse/components/topic-status"; @@ -116,10 +116,12 @@ export default class KanbanCard extends Component { {{/if}} {{#if @topic.indirectly_assigned_to}} + {{! eslint-disable no-unused-vars }}{{! workaround https://github.com/ember-cli/eslint-plugin-ember/issues/2118 }} {{#each-in @topic.indirectly_assigned_to as |target_id assignment| }} + {{! eslint-enable no-unused-vars }} {{! template-lint-disable no-nested-interactive }}
@@ -153,10 +155,12 @@ export default class KanbanCard extends Component { {{/if}} {{#if @topic.indirectly_assigned_to}} + {{! eslint-disable no-unused-vars }}{{! workaround https://github.com/ember-cli/eslint-plugin-ember/issues/2118 }} {{#each-in @topic.indirectly_assigned_to as |target_id assignment| }} + {{! eslint-enable no-unused-vars }} {{htmlSafe (renderAvatar assignment.assigned_to diff --git a/javascripts/discourse/components/kanban/controls.gjs b/javascripts/discourse/components/kanban/controls.gjs index d74da5f..1ea89a1 100644 --- a/javascripts/discourse/components/kanban/controls.gjs +++ b/javascripts/discourse/components/kanban/controls.gjs @@ -1,7 +1,7 @@ import Component from "@glimmer/component"; import { fn } from "@ember/helper"; import { action } from "@ember/object"; -import { inject as service } from "@ember/service"; +import { service } from "@ember/service"; import DButton from "discourse/components/d-button"; import bodyClass from "discourse/helpers/body-class"; import i18n from "discourse-common/helpers/i18n"; diff --git a/javascripts/discourse/components/kanban/list.gjs b/javascripts/discourse/components/kanban/list.gjs index c19e20c..c365671 100644 --- a/javascripts/discourse/components/kanban/list.gjs +++ b/javascripts/discourse/components/kanban/list.gjs @@ -2,7 +2,7 @@ import Component from "@glimmer/component"; import { tracked } from "@glimmer/tracking"; import { on } from "@ember/modifier"; import { action } from "@ember/object"; -import { inject as service } from "@ember/service"; +import { service } from "@ember/service"; import { modifier } from "ember-modifier"; import concatClass from "discourse/helpers/concat-class"; import { popupAjaxError } from "discourse/lib/ajax-error"; diff --git a/javascripts/discourse/components/kanban/modal/options.gjs b/javascripts/discourse/components/kanban/modal/options.gjs index 6c8b1dd..12d56c1 100644 --- a/javascripts/discourse/components/kanban/modal/options.gjs +++ b/javascripts/discourse/components/kanban/modal/options.gjs @@ -3,7 +3,7 @@ import { tracked } from "@glimmer/tracking"; import { fn, hash } from "@ember/helper"; import { action } from "@ember/object"; import { equal } from "@ember/object/computed"; -import { inject as service } from "@ember/service"; +import { service } from "@ember/service"; import DButton from "discourse/components/d-button"; import DModal from "discourse/components/d-modal"; import DiscourseURL from "discourse/lib/url"; @@ -86,7 +86,7 @@ export default class KanbanOptionsController extends Component { @onChange={{fn (mut this.mode)}} @valueProperty="id" @nameProperty="id" - @class="kanban-mode-chooser" + class="kanban-mode-chooser" />
@@ -98,7 +98,7 @@ export default class KanbanOptionsController extends Component { @allowCreate={{false}} @filterPlaceholder={{i18n (themePrefix "modal.tags_placeholder")}} @everyTag={{true}} - @class="kanban-tag-chooser" + class="kanban-tag-chooser" /> {{else if this.isCategories}}