use Mixin postfix when importing tags mixin

This commit is contained in:
Sam 2018-09-17 10:46:57 +10:00
parent 03edb31a4d
commit b63630d70b
4 changed files with 8 additions and 8 deletions

View File

@ -1,11 +1,11 @@
import ComboBox from "select-kit/components/combo-box";
import Tags from "select-kit/mixins/tags";
import TagsMixin from "select-kit/mixins/tags";
import { default as computed } from "ember-addons/ember-computed-decorators";
import renderTag from "discourse/lib/render-tag";
import { escapeExpression } from "discourse/lib/utilities";
const { get, isEmpty, run, makeArray } = Ember;
export default ComboBox.extend(Tags, {
export default ComboBox.extend(TagsMixin, {
allowContentReplacement: true,
headerComponent: "mini-tag-chooser/mini-tag-chooser-header",
pluginApiIdentifiers: ["mini-tag-chooser"],

View File

@ -1,10 +1,10 @@
import MultiSelectComponent from "select-kit/components/multi-select";
import Tags from "select-kit/mixins/tags";
import TagsMixin from "select-kit/mixins/tags";
import renderTag from "discourse/lib/render-tag";
import computed from "ember-addons/ember-computed-decorators";
const { get, run, makeArray } = Ember;
export default MultiSelectComponent.extend(Tags, {
export default MultiSelectComponent.extend(TagsMixin, {
pluginApiIdentifiers: ["tag-chooser"],
classNames: "tag-chooser",
isAsync: true,

View File

@ -1,10 +1,10 @@
import ComboBoxComponent from "select-kit/components/combo-box";
import DiscourseURL from "discourse/lib/url";
import Tags from "select-kit/mixins/tags";
import TagsMixin from "select-kit/mixins/tags";
import { default as computed } from "ember-addons/ember-computed-decorators";
const { isEmpty, run } = Ember;
export default ComboBoxComponent.extend(Tags, {
export default ComboBoxComponent.extend(TagsMixin, {
pluginApiIdentifiers: ["tag-drop"],
classNameBindings: ["categoryStyle", "tagClass"],
classNames: "tag-drop",

View File

@ -1,10 +1,10 @@
import MultiSelectComponent from "select-kit/components/multi-select";
import Tags from "select-kit/mixins/tags";
import TagsMixin from "select-kit/mixins/tags";
import renderTag from "discourse/lib/render-tag";
import computed from "ember-addons/ember-computed-decorators";
const { get, isEmpty, run, makeArray } = Ember;
export default MultiSelectComponent.extend(Tags, {
export default MultiSelectComponent.extend(TagsMixin, {
pluginApiIdentifiers: ["tag-group-chooser"],
classNames: ["tag-group-chooser", "tag-chooser"],
isAsync: true,