2018-02-16 19:02:43 +00:00
|
|
|
import Watchable from './watchable';
|
2017-09-19 14:47:10 +00:00
|
|
|
|
2018-02-16 19:02:43 +00:00
|
|
|
export default Watchable.extend({
|
2017-09-19 14:47:10 +00:00
|
|
|
findAllocations(node) {
|
|
|
|
const url = `${this.buildURL('node', node.get('id'), node, 'findRecord')}/allocations`;
|
|
|
|
return this.ajax(url, 'GET').then(allocs => {
|
|
|
|
return this.store.pushPayload('allocation', {
|
|
|
|
allocations: allocs,
|
|
|
|
});
|
|
|
|
});
|
|
|
|
},
|
|
|
|
});
|