import Ember from 'ember';

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

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

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

import Ember from 'ember';

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

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

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

Fix redirect for new canvas (must not include model)
Fix redirect for new canvas (must not include model)
