Skip to content

Commit

Permalink
DEV: Migrate from {{user-selector}} to {{email-group-user-chooser}} (#16
Browse files Browse the repository at this point in the history
)
  • Loading branch information
OsamaSayegh committed Feb 15, 2021
1 parent 45b174a commit fe176b4
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
1 change: 1 addition & 0 deletions .discourse-compatibility
@@ -0,0 +1 @@
2.7.0.beta3: 45b174a3e5fb3bea07fa613412da4d3c9c2858bf
@@ -1,4 +1,6 @@
import RssPollingFeedSettings from "../../admin/models/rss-polling-feed-settings";
import { set } from "@ember/object";

import {
default as computed,
observes,
Expand Down Expand Up @@ -54,5 +56,9 @@ export default Ember.Controller.extend({
this.set("saving", false);
});
},

updateAuthorUsername(setting, selected) {
set(setting, "author_username", selected.firstObject);
},
},
});
Expand Up @@ -23,11 +23,13 @@
}}
</td>
<td>
{{user-selector
single=true
includeGroups=false
usernames=setting.author_username
{{email-group-user-chooser
value=setting.author_username
disabled=saving
onChange=(action "updateAuthorUsername" setting)
options=(hash
maximum=1
)
}}
</td>
<td>
Expand Down

0 comments on commit fe176b4

Please sign in to comment.