discourse/app/assets/javascripts/select-kit/addon/components/topic-footer-mobile-dropdown.js

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

22 lines
604 B
JavaScript
Raw Normal View History

import { action } from "@ember/object";
import { classNames } from "@ember-decorators/component";
import ComboBoxComponent from "select-kit/components/combo-box";
import {
pluginApiIdentifiers,
selectKitOptions,
} from "select-kit/components/select-kit";
2017-10-20 03:51:08 +08:00
@classNames("topic-footer-mobile-dropdown")
@selectKitOptions({
none: "topic.controls",
filterable: false,
autoFilterable: false,
})
@pluginApiIdentifiers("topic-footer-mobile-dropdown")
export default class TopicFooterMobileDropdown extends ComboBoxComponent {
@action
onChange(value, item) {
item.action && item.action();
}
}