mirror of
https://github.com/TryGhost/Ghost-Admin.git
synced 2023-12-14 02:33:04 +01:00
15 lines
440 B
JavaScript
15 lines
440 B
JavaScript
import Ember from 'ember';
|
|
import GhostSelect from 'ghost/components/gh-select';
|
|
|
|
var RolesSelector = GhostSelect.extend({
|
|
roles: Ember.computed.alias('options'),
|
|
|
|
options: Ember.computed(function () {
|
|
var rolesPromise = this.store.find('role', {permissions: 'assign'});
|
|
|
|
return Ember.ArrayProxy.extend(Ember.PromiseProxyMixin)
|
|
.create({promise: rolesPromise});
|
|
})
|
|
});
|
|
|
|
export default RolesSelector;
|