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:
Jordan Reimer
2023-06-14 16:22:33 -06:00
committed by GitHub
parent e3c3a52b7b
commit fd1f95439d
7 changed files with 8 additions and 6 deletions

View File

@@ -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() {

View File

@@ -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';

View File

@@ -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()

View File

@@ -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';

View File

@@ -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 =

View File

@@ -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()

View File

@@ -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()