2017-11-21 18:53:09 +08:00
|
|
|
import SelectKitHeaderComponent from "select-kit/components/select-kit/select-kit-header";
|
2019-11-08 05:38:28 +08:00
|
|
|
import discourseComputed from "discourse-common/utils/decorators";
|
2017-11-21 18:53:09 +08:00
|
|
|
|
|
|
|
export default SelectKitHeaderComponent.extend({
|
2018-06-15 23:03:24 +08:00
|
|
|
layoutName:
|
|
|
|
"select-kit/templates/components/dropdown-select-box/dropdown-select-box-header",
|
2018-10-25 04:09:36 +08:00
|
|
|
classNames: "btn-default dropdown-select-box-header",
|
2017-11-21 18:53:09 +08:00
|
|
|
tagName: "button",
|
|
|
|
|
|
|
|
classNameBindings: ["btnClassName"],
|
|
|
|
|
2019-11-08 05:38:28 +08:00
|
|
|
@discourseComputed("options.showFullTitle")
|
2017-11-21 18:53:09 +08:00
|
|
|
btnClassName(showFullTitle) {
|
2018-03-22 18:29:55 +08:00
|
|
|
return `btn ${showFullTitle ? "btn-icon-text" : "no-text btn-icon"}`;
|
2017-11-21 18:53:09 +08:00
|
|
|
}
|
|
|
|
});
|