server/bo_client/app/routes/index.js
author nowmad@23.1.168.192.in-addr.arpa
Wed, 20 Jan 2016 10:38:09 +0100
changeset 88 1547a32aef60
parent 28 b0b56e0f8c7f
permissions -rw-r--r--
add observable on currentItem to update the icon of the item being played

import Ember from 'ember';

export default Ember.Route.extend({
  options: Ember.inject.service(),
  beforeModel: function(/*transition*/) {
    var options = this.get('options');
    if(options.docid) {
      return this.transitionTo('doc', {doc_id: options.docid});
    }
  },
  model: function() {
    return this.store.findAll('document');
  }

});