DEV: Convert to native class syntax (#611)
This commit is contained in:
parent
935e7ac7df
commit
67d9b1c1d9
|
|
@ -1,17 +1,19 @@
|
||||||
import { action } from "@ember/object";
|
import { action } from "@ember/object";
|
||||||
|
import { classNames } from "@ember-decorators/component";
|
||||||
import I18n from "I18n";
|
import I18n from "I18n";
|
||||||
import DropdownSelectBoxComponent from "select-kit/components/dropdown-select-box";
|
import DropdownSelectBoxComponent from "select-kit/components/dropdown-select-box";
|
||||||
|
import { selectKitOptions } from "select-kit/components/select-kit";
|
||||||
|
|
||||||
export default DropdownSelectBoxComponent.extend({
|
@selectKitOptions({
|
||||||
classNames: ["assign-actions-dropdown"],
|
icon: null,
|
||||||
headerIcon: null,
|
translatedNone: "...",
|
||||||
allowInitialValueMutation: false,
|
|
||||||
showFullTitle: true,
|
showFullTitle: true,
|
||||||
selectKitOptions: {
|
})
|
||||||
icon: null,
|
@classNames("assign-actions-dropdown")
|
||||||
translatedNone: "...",
|
export default class AssignActionsDropdown extends DropdownSelectBoxComponent {
|
||||||
showFullTitle: true,
|
headerIcon = null;
|
||||||
},
|
allowInitialValueMutation = false;
|
||||||
|
showFullTitle = true;
|
||||||
|
|
||||||
computeContent() {
|
computeContent() {
|
||||||
let options = [];
|
let options = [];
|
||||||
|
|
@ -49,7 +51,7 @@ export default DropdownSelectBoxComponent.extend({
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
return options;
|
return options;
|
||||||
},
|
}
|
||||||
|
|
||||||
@action
|
@action
|
||||||
onChange(id) {
|
onChange(id) {
|
||||||
|
|
@ -65,5 +67,5 @@ export default DropdownSelectBoxComponent.extend({
|
||||||
if (postId) {
|
if (postId) {
|
||||||
this.unassign(postId, "Post");
|
this.unassign(postId, "Post");
|
||||||
}
|
}
|
||||||
},
|
}
|
||||||
});
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue