github.com/outbrain/consul@v1.4.5/ui-v2/app/services/repository/node.js (about)

     1  import RepositoryService from 'consul-ui/services/repository';
     2  import { inject as service } from '@ember/service';
     3  import { get } from '@ember/object';
     4  const modelName = 'node';
     5  export default RepositoryService.extend({
     6    coordinates: service('repository/coordinate'),
     7    getModelName: function() {
     8      return modelName;
     9    },
    10    findBySlug: function(slug, dc) {
    11      return this._super(...arguments).then(node => {
    12        return get(this, 'coordinates')
    13          .findAllByDatacenter(dc)
    14          .then(function(res) {
    15            node.Coordinates = res;
    16            return node;
    17          });
    18      });
    19    },
    20  });