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 11import { action } from "@ember/object" ;
2+ import { classNames } from "@ember-decorators/component" ;
23import I18n from "I18n" ;
34import 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+ }
You can’t perform that action at this time.
0 commit comments