import Ember from 'ember';
import preload from 'canvas-web/lib/preload';

export default Ember.Route.extend({
  teamQuery: Ember.inject.service(),

  model({ domain }) {
    return this.get('teamQuery').findByDomain(domain);
  },

  afterModel(model) {
    return preload(model, 'canvases');
  },

  actions: {
    didCreateCanvas(canvas) {
      this.transitionTo('team.canvases.show',
        canvas.get('team.domain'), canvas.get('id'));
    }
  }
});

@@ -103,16 +103,58 @@
 xtend(%7B%0A
+  currentAccount: Ember.inject.service(),%0A
   teamQu
@@ -284,24 +284,87 @@
 el(model) %7B%0A
+    this.set('currentAccount.currentUser', model.get('user'));%0A
     return p

Set current user in team.index