REFACTOR: Don't use layoutName in select-kit (#10556)

Instead import the templates as modules, the way Ember CLI wants us to.
This commit is contained in:
Robin Ward
2020-08-28 15:30:20 -04:00
committed by GitHub
parent e1896f7e71
commit aae97457d2
38 changed files with 86 additions and 50 deletions

View File

@ -1,11 +1,11 @@
import SelectKitHeaderComponent from "select-kit/components/select-kit/select-kit-header";
import { computed } from "@ember/object";
import { makeArray } from "discourse-common/lib/helpers";
import layout from "select-kit/templates/components/multi-select/multi-select-header";
export default SelectKitHeaderComponent.extend({
classNames: ["multi-select-header"],
layoutName:
"select-kit/templates/components/multi-select/multi-select-header",
layout,
selectedNames: computed("selectedContent", function() {
return makeArray(this.selectedContent).map(c => this.getName(c));