Angel Garbarino d1af734f38
Prep for ember data: misc (#24749)
* missed a relationship

* send full payload of an edit database connection

* add role to Pki certificate

* use latest patch for ember/test-helpers

* clarify language on check-issuers decorator

* fix redirect from vault route

* add check that oidc provider is set up correctly

---------

Co-authored-by: Chelsea Shaw <cshaw@hashicorp.com>
2024-01-09 12:48:39 -08:00

24 lines
561 B
JavaScript

/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: BUSL-1.1
*/
import Route from '@ember/routing/route';
import { inject as service } from '@ember/service';
import { withConfig } from 'pki/decorators/check-issuers';
import { hash } from 'rsvp';
@withConfig()
export default class PkiTidyRoute extends Route {
@service store;
model() {
const engine = this.modelFor('application');
return hash({
hasConfig: this.pkiMountHasConfig,
engine,
autoTidyConfig: this.store.findRecord('pki/tidy', engine.id),
});
}
}