parent
09a62cf165
commit
e1abc5e4cb
20 changed files with 260 additions and 6 deletions
21
app/routes/collections/create.js
Normal file
21
app/routes/collections/create.js
Normal file
|
@ -0,0 +1,21 @@
|
|||
import Ember from 'ember';
|
||||
|
||||
const { Route, RSVP } = Ember;
|
||||
|
||||
export default Route.extend({
|
||||
model() {
|
||||
const store = this.get('store');
|
||||
return RSVP.hash({
|
||||
model: store.createRecord('collection'),
|
||||
projectOptions: store.findAll('project'),
|
||||
studyLocationOptions: store.findAll('study-location'),
|
||||
collectionTypeOptions: store.findAll('collection-type'),
|
||||
collectionMethodOptions: store.findAll('collection-method'),
|
||||
});
|
||||
},
|
||||
|
||||
setupController(controller, models) {
|
||||
this._super(...arguments);
|
||||
controller.setProperties(models);
|
||||
},
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue