2018-04-03 14:16:57 +00:00
|
|
|
import Ember from 'ember';
|
2018-05-24 03:10:21 +00:00
|
|
|
import UnloadModelRoute from 'vault/mixins/unload-model-route';
|
|
|
|
import UnsavedModelRoute from 'vault/mixins/unsaved-model-route';
|
2018-04-03 14:16:57 +00:00
|
|
|
|
2018-05-24 03:10:21 +00:00
|
|
|
export default Ember.Route.extend(UnloadModelRoute, UnsavedModelRoute, {
|
2018-04-03 14:16:57 +00:00
|
|
|
model(params) {
|
|
|
|
let itemType = this.modelFor('vault.cluster.access.identity');
|
|
|
|
let modelType = `identity/${itemType}`;
|
|
|
|
return this.store.findRecord(modelType, params.item_id);
|
|
|
|
},
|
|
|
|
});
|