vault/ui/lib/pki/addon/routes/configuration.js
claire bontempo 34a722195e
UI: add pki/config/acme, fix pki/configcluster save bug (#20944)
* 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
2023-06-02 02:59:03 +00:00

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),
});
}
}