github.com/outbrain/consul@v1.4.5/ui-v2/app/routes/dc/acls/edit.js (about)

     1  import Route from '@ember/routing/route';
     2  import { inject as service } from '@ember/service';
     3  import { hash } from 'rsvp';
     4  import { get } from '@ember/object';
     5  
     6  import WithAclActions from 'consul-ui/mixins/acl/with-actions';
     7  
     8  export default Route.extend(WithAclActions, {
     9    repo: service('repository/acl'),
    10    settings: service('settings'),
    11    model: function(params) {
    12      return hash({
    13        isLoading: false,
    14        item: get(this, 'repo').findBySlug(params.id, this.modelFor('dc').dc.Name),
    15        types: ['management', 'client'],
    16      });
    17    },
    18    setupController: function(controller, model) {
    19      this._super(...arguments);
    20      controller.setProperties(model);
    21    },
    22  });