* DEV: group_list site settings should store IDs instead of group names * Ship site setting to know when we should migrate group_list settings * Migrate existing group_list site settings * Bump migration timestamp and don't set null when migrating is not possible.
11 lines
251 B
JavaScript
11 lines
251 B
JavaScript
import computed from "ember-addons/ember-computed-decorators";
|
|
|
|
export default Ember.Component.extend({
|
|
@computed()
|
|
groupChoices() {
|
|
return this.site.get("groups").map(g => {
|
|
return { name: g.name, id: g.id.toString() };
|
|
});
|
|
}
|
|
});
|