fixed some admin links left behind

This commit is contained in:
jasquat 2023-09-20 13:20:49 -04:00
parent ff83b8c801
commit 025a62aa37
15 changed files with 18 additions and 18 deletions

View File

@ -159,7 +159,7 @@ export default function MessageInstanceList({ processInstanceId }: OwnProps) {
breadcrumbElement = (
<ProcessBreadcrumb
hotCrumbs={[
['Process Groups', '/admin'],
['Process Groups', '/process-groups'],
{
entityToExplode: searchParams.get('process_model_id') || '',
entityType: 'process-model-id',

View File

@ -16,7 +16,7 @@ test('renders hotCrumbs', () => {
render(
<BrowserRouter>
<ProcessBreadcrumb
hotCrumbs={[['Process Groups', '/admin'], [`Process Group: hey`]]}
hotCrumbs={[['Process Groups', '/process-groups'], [`Process Group: hey`]]}
/>
</BrowserRouter>
);

View File

@ -359,7 +359,7 @@ export default function JsonSchemaFormBuilder() {
<>
<ProcessBreadcrumb
hotCrumbs={[
['Process Groups', '/admin'],
['Process Groups', '/process-groups'],
{
entityToExplode: params.process_model_id || '',
entityType: 'process-model-id',

View File

@ -28,7 +28,7 @@ export default function ProcessGroupEdit() {
<>
<ProcessBreadcrumb
hotCrumbs={[
['Process Groups', '/admin'],
['Process Groups', '/process-groups'],
{
entityToExplode: processGroup,
entityType: 'process-group',

View File

@ -14,7 +14,7 @@ export default function ProcessGroupNew() {
});
setPageTitle(['New Process Group']);
const hotCrumbs: HotCrumbItem[] = [['Process Groups', '/admin']];
const hotCrumbs: HotCrumbItem[] = [['Process Groups', '/process-groups']];
if (parentGroupId) {
hotCrumbs.push({
entityToExplode: parentGroupId,

View File

@ -137,7 +137,7 @@ export default function ProcessGroupShow() {
<>
<ProcessBreadcrumb
hotCrumbs={[
['Process Groups', '/admin'],
['Process Groups', '/process-groups'],
{
entityToExplode: processGroup,
entityType: 'process-group',

View File

@ -28,7 +28,7 @@ export default function ProcessInstanceList({ variant }: OwnProps) {
return (
<ProcessBreadcrumb
hotCrumbs={[
['Process Groups', '/admin'],
['Process Groups', '/process-groups'],
{
entityToExplode: processModelFullIdentifier,
entityType: 'process-model-id',

View File

@ -1534,7 +1534,7 @@ export default function ProcessInstanceShow({ variant }: OwnProps) {
<>
<ProcessBreadcrumb
hotCrumbs={[
['Process Groups', '/admin'],
['Process Groups', '/process-groups'],
{
entityToExplode: processModelId,
entityType: 'process-model-id',

View File

@ -19,7 +19,7 @@ export default function ProcessInterstitialPage({ variant }: OwnProps) {
<>
<ProcessBreadcrumb
hotCrumbs={[
['Process Groups', '/admin'],
['Process Groups', '/process-groups'],
{
entityToExplode: String(params.process_model_id),
entityType: 'process-model-id',

View File

@ -25,7 +25,7 @@ export default function ProcessModelEdit() {
<>
<ProcessBreadcrumb
hotCrumbs={[
['Process Groups', '/admin'],
['Process Groups', '/process-groups'],
{
entityToExplode: processModel,
entityType: 'process-model',

View File

@ -280,7 +280,7 @@ export default function ProcessModelEditDiagram() {
const httpMethod = 'PUT';
const navigateToProcessModelShow = (_httpResult: any) => {
navigate(`/admin${url}`);
navigate(url);
};
const processModelToPass = {
primary_file_name: fileName,
@ -1131,7 +1131,7 @@ export default function ProcessModelEditDiagram() {
<>
<ProcessBreadcrumb
hotCrumbs={[
['Process Groups', '/admin'],
['Process Groups', '/process-groups'],
{
entityToExplode: processModel,
entityType: 'process-model',

View File

@ -24,7 +24,7 @@ export default function ProcessModelNew() {
<>
<ProcessBreadcrumb
hotCrumbs={[
['Process Groups', '/admin'],
['Process Groups', '/process-groups'],
{
entityToExplode: params.process_group_id || '',
entityType: 'process-group-id',

View File

@ -42,7 +42,7 @@ export default function ProcessModelNewExperimental() {
<>
<ProcessBreadcrumb
hotCrumbs={[
['Process Groups', '/admin'],
['Process Groups', '/process-groups'],
{
entityToExplode: params.process_group_id || '',
entityType: 'process-group-id',

View File

@ -595,7 +595,7 @@ export default function ProcessModelShow() {
renderIcon={Edit}
iconDescription="Edit README.md"
hasIconOnly
href={`/admin/process-models/${modifiedProcessModelId}/form/${readmeFile.name}`}
href={`/process-models/${modifiedProcessModelId}/form/${readmeFile.name}`}
/>
</Can>
</Column>
@ -618,7 +618,7 @@ export default function ProcessModelShow() {
<Button
className="with-top-margin"
data-qa="process-model-readme-file-create"
href={`/admin/process-models/${modifiedProcessModelId}/form?file_ext=md&default_file_name=README.md`}
href={`/process-models/${modifiedProcessModelId}/form?file_ext=md&default_file_name=README.md`}
size="md"
>
Add README.md
@ -738,7 +738,7 @@ export default function ProcessModelShow() {
{confirmOverwriteFileDialog()}
<ProcessBreadcrumb
hotCrumbs={[
['Process Groups', '/admin'],
['Process Groups', '/process-groups'],
{
entityToExplode: processModel,
entityType: 'process-model',

View File

@ -255,7 +255,7 @@ export default function ReactFormEditor() {
<main>
<ProcessBreadcrumb
hotCrumbs={[
['Process Groups', '/admin'],
['Process Groups', '/process-groups'],
{
entityToExplode: params.process_model_id || '',
entityType: 'process-model-id',