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