9953eb76aa
* add routes for control groups in tools, settings, access (#4718) * UI control group - storage, request, authorization, and unwrapping (#4899) * UI control groups config (#4927)
23 lines
662 B
JavaScript
23 lines
662 B
JavaScript
import Ember from 'ember';
|
|
import ModelBoundaryRoute from 'vault/mixins/model-boundary-route';
|
|
|
|
const { inject } = Ember;
|
|
export default Ember.Route.extend(ModelBoundaryRoute, {
|
|
auth: inject.service(),
|
|
controlGroup: inject.service(),
|
|
flashMessages: inject.service(),
|
|
console: inject.service(),
|
|
|
|
modelTypes: ['secret', 'secret-engine'],
|
|
|
|
beforeModel() {
|
|
this.get('auth').deleteCurrentToken();
|
|
this.get('controlGroup').deleteTokens();
|
|
this.get('console').set('isOpen', false);
|
|
this.get('console').clearLog(true);
|
|
this.clearModelCache();
|
|
this.replaceWith('vault.cluster');
|
|
this.get('flashMessages').clearMessages();
|
|
},
|
|
});
|