mirror of
https://github.com/hashicorp/vault.git
synced 2025-08-23 07:31:09 +02:00
* bandaid on a slew of problems * lower case to match KVv2 * return to uppercase * us kmipBreadcrumbs because of testing reasons * test coverage * add test coverage for breadcrumbs roles
23 lines
454 B
JavaScript
23 lines
454 B
JavaScript
/**
|
|
* Copyright (c) HashiCorp, Inc.
|
|
* SPDX-License-Identifier: BUSL-1.1
|
|
*/
|
|
|
|
import Route from '@ember/routing/route';
|
|
import { service } from '@ember/service';
|
|
|
|
export default class KmipScopesCreate extends Route {
|
|
@service store;
|
|
@service secretMountPath;
|
|
|
|
beforeModel() {
|
|
this.store.unloadAll('kmip/scope');
|
|
}
|
|
|
|
model() {
|
|
return this.store.createRecord('kmip/scope', {
|
|
backend: this.secretMountPath.currentPath,
|
|
});
|
|
}
|
|
}
|