mirror of
https://github.com/hashicorp/vault.git
synced 2025-08-19 05:31:10 +02:00
* fix cluster/config actually saving doh * add mkdown copy * add acme config to edit form * fix tests * add empty state capabilities test * add acceptance test for mixed permission save * swap order to match form * update copy * make markdown changes * fix y
24 lines
759 B
JavaScript
24 lines
759 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';
|
|
import { hash } from 'rsvp';
|
|
|
|
export default class PkiConfigurationRoute extends Route {
|
|
@service store;
|
|
|
|
model() {
|
|
const engine = this.modelFor('application');
|
|
return hash({
|
|
engine,
|
|
acme: this.store.findRecord('pki/config/acme', engine.id).catch((e) => e.httpStatus),
|
|
cluster: this.store.findRecord('pki/config/cluster', engine.id).catch((e) => e.httpStatus),
|
|
urls: this.store.findRecord('pki/config/urls', engine.id).catch((e) => e.httpStatus),
|
|
crl: this.store.findRecord('pki/config/crl', engine.id).catch((e) => e.httpStatus),
|
|
});
|
|
}
|
|
}
|