13 lines
348 B
JavaScript
13 lines
348 B
JavaScript
import Watchable from './watchable';
|
|
|
|
export default Watchable.extend({
|
|
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,
|
|
});
|
|
});
|
|
},
|
|
});
|