mirror of
https://github.com/discourse/discourse.git
synced 2025-05-30 15:28:37 +08:00
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:
@ -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));
|
||||
|
Reference in New Issue
Block a user