mirror of
https://github.com/discourse/discourse.git
synced 2025-05-28 01:56:58 +08:00
FIX: select-kit refactoring
- improve mini-tag-chooser keyboard behavior - all multil select now respond to select all and left/right arrows - improve events handling - many minor tweaks
This commit is contained in:
@ -1,5 +1,6 @@
|
||||
import DropdownSelectBox from "select-kit/components/dropdown-select-box";
|
||||
import computed from "ember-addons/ember-computed-decorators";
|
||||
const { get } = Ember;
|
||||
|
||||
export default DropdownSelectBox.extend({
|
||||
classNames: ["delete-flag", "admin-delete-flag-dropdown"],
|
||||
@ -8,7 +9,7 @@ export default DropdownSelectBox.extend({
|
||||
headerIcon: "trash-o",
|
||||
|
||||
computeHeaderContent() {
|
||||
let content = this.baseHeaderComputedContent();
|
||||
let content = this._super();
|
||||
content.name = `${I18n.t("admin.flags.delete")}...`;
|
||||
return content;
|
||||
},
|
||||
@ -55,7 +56,7 @@ export default DropdownSelectBox.extend({
|
||||
|
||||
mutateValue(value) {
|
||||
const computedContentItem = this.get("computedContent").findBy("value", value);
|
||||
Ember.get(computedContentItem, "originalContent.action")();
|
||||
get(computedContentItem, "originalContent.action")();
|
||||
},
|
||||
|
||||
actions: {
|
||||
|
Reference in New Issue
Block a user