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)
18 lines
433 B
JavaScript
18 lines
433 B
JavaScript
import Ember from 'ember';
|
|
import UnloadModel from 'vault/mixins/unload-model-route';
|
|
const { inject } = Ember;
|
|
|
|
export default Ember.Route.extend(UnloadModel, {
|
|
version: inject.service(),
|
|
|
|
beforeModel() {
|
|
return this.get('version').fetchFeatures().then(() => {
|
|
return this._super(...arguments);
|
|
});
|
|
},
|
|
|
|
model() {
|
|
return this.get('version.isOSS') ? null : this.store.createRecord('control-group');
|
|
},
|
|
});
|