Clean up compare route on exit
This commit is contained in:
parent
4c8cbd20c7
commit
f95b6e4c5f
1 changed files with 9 additions and 1 deletions
|
@ -1,4 +1,12 @@
|
|||
import Ember from 'ember';
|
||||
import AuthenticatedRouteMixin from 'simple-auth/mixins/authenticated-route-mixin';
|
||||
|
||||
export default Ember.Route.extend(AuthenticatedRouteMixin);
|
||||
export default Ember.Route.extend(AuthenticatedRouteMixin, {
|
||||
resetController: function(controller, isExiting /*, transition*/) {
|
||||
if (isExiting) {
|
||||
controller.set('data', null);
|
||||
controller.set('strains', null);
|
||||
controller.set('dataEmpty', true);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
Reference in a new issue