mirror of
https://github.com/discourse/discourse.git
synced 2024-12-01 20:33:43 +08:00
16 lines
557 B
Plaintext
16 lines
557 B
Plaintext
|
import SelectKitHeaderComponent from "select-kit/components/select-kit/select-kit-header";
|
||
|
import computed from "ember-addons/ember-computed-decorators";
|
||
|
|
||
|
export default SelectKitHeaderComponent.extend({
|
||
|
layoutName: "select-kit/templates/components/dropdown-select-box/dropdown-select-box-header",
|
||
|
classNames: "dropdown-select-box-header",
|
||
|
tagName: "button",
|
||
|
|
||
|
classNameBindings: ["btnClassName"],
|
||
|
|
||
|
@computed("options.showFullTitle")
|
||
|
btnClassName(showFullTitle) {
|
||
|
return `btn ${showFullTitle ? 'btn-icon-text' : 'no-text btn-icon'}`;
|
||
|
}
|
||
|
});
|