2024-08-23 19:17:07 +08:00
|
|
|
import { action } from "@ember/object";
|
|
|
|
import { classNames } from "@ember-decorators/component";
|
2017-11-21 18:53:09 +08:00
|
|
|
import ComboBoxComponent from "select-kit/components/combo-box";
|
2024-08-23 19:17:07 +08:00
|
|
|
import {
|
|
|
|
pluginApiIdentifiers,
|
|
|
|
selectKitOptions,
|
|
|
|
} from "select-kit/components/select-kit";
|
2017-10-20 03:51:08 +08:00
|
|
|
|
2024-08-23 19:17:07 +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();
|
|
|
|
}
|
|
|
|
}
|