mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-30 01:42:29 +03:00
0e9d4e6792
Refs #4001 - grunt-jscs@0.8.1 which provides ES6 support.
15 lines
413 B
JavaScript
15 lines
413 B
JavaScript
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;
|