mirror of
https://github.com/discourse/discourse.git
synced 2024-12-25 09:14:00 +08:00
d1cc60c435
Changes made using the ember-native-class-codemod, plus some manual tweaks
22 lines
604 B
JavaScript
22 lines
604 B
JavaScript
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";
|
|
|
|
@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();
|
|
}
|
|
}
|