mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-10-29 09:42:25 +00:00
Rename PKI check-config Decorator (#21241)
* renames pki check-config decorator to check-issuers * reverts check-issuers decorator function name change
This commit is contained in:
@@ -10,6 +10,8 @@ import { inject as service } from '@ember/service';
|
||||
* the overview, roles, issuers, certificates, and key routes all need to be aware of the whether there is a config for the engine
|
||||
* if the user has not configured they are prompted to do so in each of the routes
|
||||
* decorate the necessary routes to perform the check in the beforeModel hook since that may change what is returned for the model
|
||||
*
|
||||
* while this decorator is similar to fetch-secrets-engine-config in the core addon, the differences were enough to warrant a specific decorator for pki
|
||||
*/
|
||||
|
||||
export function withConfig() {
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
import Route from '@ember/routing/route';
|
||||
import { inject as service } from '@ember/service';
|
||||
import { withConfig } from 'pki/decorators/check-config';
|
||||
import { withConfig } from 'pki/decorators/check-issuers';
|
||||
import { hash } from 'rsvp';
|
||||
import { getCliMessage } from 'pki/routes/overview';
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
import Route from '@ember/routing/route';
|
||||
import { inject as service } from '@ember/service';
|
||||
import { withConfig } from 'pki/decorators/check-config';
|
||||
import { withConfig } from 'pki/decorators/check-issuers';
|
||||
import { hash } from 'rsvp';
|
||||
|
||||
@withConfig()
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
import Route from '@ember/routing/route';
|
||||
import { inject as service } from '@ember/service';
|
||||
import { withConfig } from 'pki/decorators/check-config';
|
||||
import { withConfig } from 'pki/decorators/check-issuers';
|
||||
import { hash } from 'rsvp';
|
||||
import { PKI_DEFAULT_EMPTY_STATE_MSG } from 'pki/routes/overview';
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
import Route from '@ember/routing/route';
|
||||
import { inject as service } from '@ember/service';
|
||||
import { withConfig } from 'pki/decorators/check-config';
|
||||
import { withConfig } from 'pki/decorators/check-issuers';
|
||||
import { hash } from 'rsvp';
|
||||
|
||||
export const PKI_DEFAULT_EMPTY_STATE_MSG =
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
import Route from '@ember/routing/route';
|
||||
import { inject as service } from '@ember/service';
|
||||
import { withConfig } from 'pki/decorators/check-config';
|
||||
import { withConfig } from 'pki/decorators/check-issuers';
|
||||
import { hash } from 'rsvp';
|
||||
import { getCliMessage } from 'pki/routes/overview';
|
||||
@withConfig()
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import Route from '@ember/routing/route';
|
||||
import { inject as service } from '@ember/service';
|
||||
import { withConfig } from 'pki/decorators/check-config';
|
||||
import { withConfig } from 'pki/decorators/check-issuers';
|
||||
import { hash } from 'rsvp';
|
||||
|
||||
@withConfig()
|
||||
|
||||
Reference in New Issue
Block a user