mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
User flair was given by user's primary group. This PR separates the two, adds a new field to the user model for flair group ID and users can select their flair from user preferences now.
15 lines
319 B
JavaScript
15 lines
319 B
JavaScript
import ComboBoxComponent from "select-kit/components/combo-box";
|
|
|
|
export default ComboBoxComponent.extend({
|
|
pluginApiIdentifiers: ["flair-chooser"],
|
|
classNames: ["flair-chooser"],
|
|
|
|
selectKitOptions: {
|
|
selectedNameComponent: "selected-flair",
|
|
},
|
|
|
|
modifyComponentForRow() {
|
|
return "flair-row";
|
|
},
|
|
});
|