-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
25 additions
and
10 deletions.
There are no files selected for viewing
22 changes: 22 additions & 0 deletions
22
assets/javascripts/discourse/components/param-input/category-id-input.gjs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import Component from "@glimmer/component"; | ||
import CategoryChooser from "select-kit/components/category-chooser"; | ||
|
||
export default class GroupListInput extends Component { | ||
// CategoryChooser will try to modify the value of value, | ||
// triggering a setting-on-hash error. So we have to do the dirty work. | ||
get data() { | ||
return { | ||
value: this.args.field.value, | ||
}; | ||
} | ||
|
||
<template> | ||
<@field.Custom id={{@field.id}} @_tmp={{this.valueChange}}> | ||
<CategoryChooser | ||
@value={{this.data.value}} | ||
@onChange={{@field.set}} | ||
name={{@info.identifier}} | ||
/> | ||
</@field.Custom> | ||
</template> | ||
} |
7 changes: 0 additions & 7 deletions
7
assets/javascripts/discourse/components/param-input/category-id-input.hbs
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters