discourse/app/assets/javascripts/select-kit/addon/components/topic-footer-mobile-dropdown.js
David Taylor d1cc60c435
DEV: Convert select-kit components to native class syntax (#28489)
Changes made using the ember-native-class-codemod, plus some manual tweaks
2024-08-23 12:17:07 +01:00

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();
}
}