mirror of
https://gitlab.silvrtree.co.uk/martind2000/censis-obrand.git
synced 2025-02-11 21:09:15 +00:00
30 lines
788 B
JavaScript
30 lines
788 B
JavaScript
import Ember from 'ember';
|
|
|
|
const { inject: { service }, RSVP } = Ember;
|
|
|
|
export default Ember.Route.extend({
|
|
sessionAccount: service('session-account'),
|
|
beforeModel() {
|
|
'use strict';
|
|
const cid = this.get('sessionAccount.account.memberof');
|
|
console.log(cid);
|
|
this.store.query('page', { filter: { cid: cid } }).then(function(d) {
|
|
// Do something with `peters`
|
|
// console.log(d);
|
|
return d;
|
|
});
|
|
},
|
|
model: function(params) {
|
|
return this.store.findAll('page');
|
|
/* 'use strict';
|
|
const cid = this.get('sessionAccount.account.memberof');
|
|
console.log(cid);
|
|
this.store.query('page', { filter: { cid: cid } }).then(function(d) {
|
|
// Do something with `peters`
|
|
console.log(d);
|
|
return d;
|
|
});*/
|
|
|
|
}
|
|
});
|