This repository was archived by the owner on Jul 14, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +14
-12
lines changed
assets/javascripts/discourse/components Expand file tree Collapse file tree 1 file changed +14
-12
lines changed Original file line number Diff line number Diff line change 1
1
import { action } from "@ember/object" ;
2
+ import { classNames } from "@ember-decorators/component" ;
2
3
import I18n from "I18n" ;
3
4
import DropdownSelectBoxComponent from "select-kit/components/dropdown-select-box" ;
5
+ import { selectKitOptions } from "select-kit/components/select-kit" ;
4
6
5
- export default DropdownSelectBoxComponent . extend ( {
6
- classNames : [ "assign-actions-dropdown" ] ,
7
- headerIcon : null ,
8
- allowInitialValueMutation : false ,
7
+ @selectKitOptions ( {
8
+ icon : null ,
9
+ translatedNone : "..." ,
9
10
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 ;
15
17
16
18
computeContent ( ) {
17
19
let options = [ ] ;
@@ -49,7 +51,7 @@ export default DropdownSelectBoxComponent.extend({
49
51
} ) ;
50
52
}
51
53
return options ;
52
- } ,
54
+ }
53
55
54
56
@action
55
57
onChange ( id ) {
@@ -65,5 +67,5 @@ export default DropdownSelectBoxComponent.extend({
65
67
if ( postId ) {
66
68
this . unassign ( postId , "Post" ) ;
67
69
}
68
- } ,
69
- } ) ;
70
+ }
71
+ }
You can’t perform that action at this time.
0 commit comments