mirror of
https://github.com/hashicorp/vault.git
synced 2025-08-18 12:37:02 +02:00
22 lines
470 B
JavaScript
22 lines
470 B
JavaScript
/**
|
|
* Copyright (c) HashiCorp, Inc.
|
|
* SPDX-License-Identifier: MPL-2.0
|
|
*/
|
|
|
|
import Route from '@ember/routing/route';
|
|
import { inject as service } from '@ember/service';
|
|
|
|
export default Route.extend({
|
|
store: service(),
|
|
secretMountPath: service(),
|
|
beforeModel() {
|
|
this.store.unloadAll('kmip/scope');
|
|
},
|
|
model() {
|
|
const model = this.store.createRecord('kmip/scope', {
|
|
backend: this.secretMountPath.currentPath,
|
|
});
|
|
return model;
|
|
},
|
|
});
|