Skip to content
This repository was archived by the owner on Jul 14, 2025. It is now read-only.

Commit 67d9b1c

Browse files
DEV: Convert to native class syntax (#611)
1 parent 935e7ac commit 67d9b1c

File tree

1 file changed

+14
-12
lines changed

1 file changed

+14
-12
lines changed

assets/javascripts/discourse/components/assign-actions-dropdown.js

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,19 @@
11
import { action } from "@ember/object";
2+
import { classNames } from "@ember-decorators/component";
23
import I18n from "I18n";
34
import DropdownSelectBoxComponent from "select-kit/components/dropdown-select-box";
5+
import { selectKitOptions } from "select-kit/components/select-kit";
46

5-
export default DropdownSelectBoxComponent.extend({
6-
classNames: ["assign-actions-dropdown"],
7-
headerIcon: null,
8-
allowInitialValueMutation: false,
7+
@selectKitOptions({
8+
icon: null,
9+
translatedNone: "...",
910
showFullTitle: true,
10-
selectKitOptions: {
11-
icon: null,
12-
translatedNone: "...",
13-
showFullTitle: true,
14-
},
11+
})
12+
@classNames("assign-actions-dropdown")
13+
export default class AssignActionsDropdown extends DropdownSelectBoxComponent {
14+
headerIcon = null;
15+
allowInitialValueMutation = false;
16+
showFullTitle = true;
1517

1618
computeContent() {
1719
let options = [];
@@ -49,7 +51,7 @@ export default DropdownSelectBoxComponent.extend({
4951
});
5052
}
5153
return options;
52-
},
54+
}
5355

5456
@action
5557
onChange(id) {
@@ -65,5 +67,5 @@ export default DropdownSelectBoxComponent.extend({
6567
if (postId) {
6668
this.unassign(postId, "Post");
6769
}
68-
},
69-
});
70+
}
71+
}

0 commit comments

Comments
 (0)