2018-09-25 16:28:26 +00:00
|
|
|
import Route from '@ember/routing/route';
|
2018-04-03 14:16:57 +00:00
|
|
|
import UnloadModelRoute from 'vault/mixins/unload-model-route';
|
|
|
|
import UnsavedModelRoute from 'vault/mixins/unsaved-model-route';
|
|
|
|
|
2018-09-25 16:28:26 +00:00
|
|
|
export default Route.extend(UnloadModelRoute, UnsavedModelRoute, {
|
2018-04-03 14:16:57 +00:00
|
|
|
// intentionally blank - we don't want a model until one is
|
|
|
|
// created via the form in the controller
|
|
|
|
model() {
|
|
|
|
return {};
|
|
|
|
},
|
|
|
|
activate() {
|
|
|
|
this.store.unloadAll('secret-engine');
|
|
|
|
},
|
|
|
|
});
|