fixed some admin links left behind
This commit is contained in:
parent
ff83b8c801
commit
025a62aa37
|
@ -159,7 +159,7 @@ export default function MessageInstanceList({ processInstanceId }: OwnProps) {
|
||||||
breadcrumbElement = (
|
breadcrumbElement = (
|
||||||
<ProcessBreadcrumb
|
<ProcessBreadcrumb
|
||||||
hotCrumbs={[
|
hotCrumbs={[
|
||||||
['Process Groups', '/admin'],
|
['Process Groups', '/process-groups'],
|
||||||
{
|
{
|
||||||
entityToExplode: searchParams.get('process_model_id') || '',
|
entityToExplode: searchParams.get('process_model_id') || '',
|
||||||
entityType: 'process-model-id',
|
entityType: 'process-model-id',
|
||||||
|
|
|
@ -16,7 +16,7 @@ test('renders hotCrumbs', () => {
|
||||||
render(
|
render(
|
||||||
<BrowserRouter>
|
<BrowserRouter>
|
||||||
<ProcessBreadcrumb
|
<ProcessBreadcrumb
|
||||||
hotCrumbs={[['Process Groups', '/admin'], [`Process Group: hey`]]}
|
hotCrumbs={[['Process Groups', '/process-groups'], [`Process Group: hey`]]}
|
||||||
/>
|
/>
|
||||||
</BrowserRouter>
|
</BrowserRouter>
|
||||||
);
|
);
|
||||||
|
|
|
@ -359,7 +359,7 @@ export default function JsonSchemaFormBuilder() {
|
||||||
<>
|
<>
|
||||||
<ProcessBreadcrumb
|
<ProcessBreadcrumb
|
||||||
hotCrumbs={[
|
hotCrumbs={[
|
||||||
['Process Groups', '/admin'],
|
['Process Groups', '/process-groups'],
|
||||||
{
|
{
|
||||||
entityToExplode: params.process_model_id || '',
|
entityToExplode: params.process_model_id || '',
|
||||||
entityType: 'process-model-id',
|
entityType: 'process-model-id',
|
||||||
|
|
|
@ -28,7 +28,7 @@ export default function ProcessGroupEdit() {
|
||||||
<>
|
<>
|
||||||
<ProcessBreadcrumb
|
<ProcessBreadcrumb
|
||||||
hotCrumbs={[
|
hotCrumbs={[
|
||||||
['Process Groups', '/admin'],
|
['Process Groups', '/process-groups'],
|
||||||
{
|
{
|
||||||
entityToExplode: processGroup,
|
entityToExplode: processGroup,
|
||||||
entityType: 'process-group',
|
entityType: 'process-group',
|
||||||
|
|
|
@ -14,7 +14,7 @@ export default function ProcessGroupNew() {
|
||||||
});
|
});
|
||||||
setPageTitle(['New Process Group']);
|
setPageTitle(['New Process Group']);
|
||||||
|
|
||||||
const hotCrumbs: HotCrumbItem[] = [['Process Groups', '/admin']];
|
const hotCrumbs: HotCrumbItem[] = [['Process Groups', '/process-groups']];
|
||||||
if (parentGroupId) {
|
if (parentGroupId) {
|
||||||
hotCrumbs.push({
|
hotCrumbs.push({
|
||||||
entityToExplode: parentGroupId,
|
entityToExplode: parentGroupId,
|
||||||
|
|
|
@ -137,7 +137,7 @@ export default function ProcessGroupShow() {
|
||||||
<>
|
<>
|
||||||
<ProcessBreadcrumb
|
<ProcessBreadcrumb
|
||||||
hotCrumbs={[
|
hotCrumbs={[
|
||||||
['Process Groups', '/admin'],
|
['Process Groups', '/process-groups'],
|
||||||
{
|
{
|
||||||
entityToExplode: processGroup,
|
entityToExplode: processGroup,
|
||||||
entityType: 'process-group',
|
entityType: 'process-group',
|
||||||
|
|
|
@ -28,7 +28,7 @@ export default function ProcessInstanceList({ variant }: OwnProps) {
|
||||||
return (
|
return (
|
||||||
<ProcessBreadcrumb
|
<ProcessBreadcrumb
|
||||||
hotCrumbs={[
|
hotCrumbs={[
|
||||||
['Process Groups', '/admin'],
|
['Process Groups', '/process-groups'],
|
||||||
{
|
{
|
||||||
entityToExplode: processModelFullIdentifier,
|
entityToExplode: processModelFullIdentifier,
|
||||||
entityType: 'process-model-id',
|
entityType: 'process-model-id',
|
||||||
|
|
|
@ -1534,7 +1534,7 @@ export default function ProcessInstanceShow({ variant }: OwnProps) {
|
||||||
<>
|
<>
|
||||||
<ProcessBreadcrumb
|
<ProcessBreadcrumb
|
||||||
hotCrumbs={[
|
hotCrumbs={[
|
||||||
['Process Groups', '/admin'],
|
['Process Groups', '/process-groups'],
|
||||||
{
|
{
|
||||||
entityToExplode: processModelId,
|
entityToExplode: processModelId,
|
||||||
entityType: 'process-model-id',
|
entityType: 'process-model-id',
|
||||||
|
|
|
@ -19,7 +19,7 @@ export default function ProcessInterstitialPage({ variant }: OwnProps) {
|
||||||
<>
|
<>
|
||||||
<ProcessBreadcrumb
|
<ProcessBreadcrumb
|
||||||
hotCrumbs={[
|
hotCrumbs={[
|
||||||
['Process Groups', '/admin'],
|
['Process Groups', '/process-groups'],
|
||||||
{
|
{
|
||||||
entityToExplode: String(params.process_model_id),
|
entityToExplode: String(params.process_model_id),
|
||||||
entityType: 'process-model-id',
|
entityType: 'process-model-id',
|
||||||
|
|
|
@ -25,7 +25,7 @@ export default function ProcessModelEdit() {
|
||||||
<>
|
<>
|
||||||
<ProcessBreadcrumb
|
<ProcessBreadcrumb
|
||||||
hotCrumbs={[
|
hotCrumbs={[
|
||||||
['Process Groups', '/admin'],
|
['Process Groups', '/process-groups'],
|
||||||
{
|
{
|
||||||
entityToExplode: processModel,
|
entityToExplode: processModel,
|
||||||
entityType: 'process-model',
|
entityType: 'process-model',
|
||||||
|
|
|
@ -280,7 +280,7 @@ export default function ProcessModelEditDiagram() {
|
||||||
const httpMethod = 'PUT';
|
const httpMethod = 'PUT';
|
||||||
|
|
||||||
const navigateToProcessModelShow = (_httpResult: any) => {
|
const navigateToProcessModelShow = (_httpResult: any) => {
|
||||||
navigate(`/admin${url}`);
|
navigate(url);
|
||||||
};
|
};
|
||||||
const processModelToPass = {
|
const processModelToPass = {
|
||||||
primary_file_name: fileName,
|
primary_file_name: fileName,
|
||||||
|
@ -1131,7 +1131,7 @@ export default function ProcessModelEditDiagram() {
|
||||||
<>
|
<>
|
||||||
<ProcessBreadcrumb
|
<ProcessBreadcrumb
|
||||||
hotCrumbs={[
|
hotCrumbs={[
|
||||||
['Process Groups', '/admin'],
|
['Process Groups', '/process-groups'],
|
||||||
{
|
{
|
||||||
entityToExplode: processModel,
|
entityToExplode: processModel,
|
||||||
entityType: 'process-model',
|
entityType: 'process-model',
|
||||||
|
|
|
@ -24,7 +24,7 @@ export default function ProcessModelNew() {
|
||||||
<>
|
<>
|
||||||
<ProcessBreadcrumb
|
<ProcessBreadcrumb
|
||||||
hotCrumbs={[
|
hotCrumbs={[
|
||||||
['Process Groups', '/admin'],
|
['Process Groups', '/process-groups'],
|
||||||
{
|
{
|
||||||
entityToExplode: params.process_group_id || '',
|
entityToExplode: params.process_group_id || '',
|
||||||
entityType: 'process-group-id',
|
entityType: 'process-group-id',
|
||||||
|
|
|
@ -42,7 +42,7 @@ export default function ProcessModelNewExperimental() {
|
||||||
<>
|
<>
|
||||||
<ProcessBreadcrumb
|
<ProcessBreadcrumb
|
||||||
hotCrumbs={[
|
hotCrumbs={[
|
||||||
['Process Groups', '/admin'],
|
['Process Groups', '/process-groups'],
|
||||||
{
|
{
|
||||||
entityToExplode: params.process_group_id || '',
|
entityToExplode: params.process_group_id || '',
|
||||||
entityType: 'process-group-id',
|
entityType: 'process-group-id',
|
||||||
|
|
|
@ -595,7 +595,7 @@ export default function ProcessModelShow() {
|
||||||
renderIcon={Edit}
|
renderIcon={Edit}
|
||||||
iconDescription="Edit README.md"
|
iconDescription="Edit README.md"
|
||||||
hasIconOnly
|
hasIconOnly
|
||||||
href={`/admin/process-models/${modifiedProcessModelId}/form/${readmeFile.name}`}
|
href={`/process-models/${modifiedProcessModelId}/form/${readmeFile.name}`}
|
||||||
/>
|
/>
|
||||||
</Can>
|
</Can>
|
||||||
</Column>
|
</Column>
|
||||||
|
@ -618,7 +618,7 @@ export default function ProcessModelShow() {
|
||||||
<Button
|
<Button
|
||||||
className="with-top-margin"
|
className="with-top-margin"
|
||||||
data-qa="process-model-readme-file-create"
|
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"
|
size="md"
|
||||||
>
|
>
|
||||||
Add README.md
|
Add README.md
|
||||||
|
@ -738,7 +738,7 @@ export default function ProcessModelShow() {
|
||||||
{confirmOverwriteFileDialog()}
|
{confirmOverwriteFileDialog()}
|
||||||
<ProcessBreadcrumb
|
<ProcessBreadcrumb
|
||||||
hotCrumbs={[
|
hotCrumbs={[
|
||||||
['Process Groups', '/admin'],
|
['Process Groups', '/process-groups'],
|
||||||
{
|
{
|
||||||
entityToExplode: processModel,
|
entityToExplode: processModel,
|
||||||
entityType: 'process-model',
|
entityType: 'process-model',
|
||||||
|
|
|
@ -255,7 +255,7 @@ export default function ReactFormEditor() {
|
||||||
<main>
|
<main>
|
||||||
<ProcessBreadcrumb
|
<ProcessBreadcrumb
|
||||||
hotCrumbs={[
|
hotCrumbs={[
|
||||||
['Process Groups', '/admin'],
|
['Process Groups', '/process-groups'],
|
||||||
{
|
{
|
||||||
entityToExplode: params.process_model_id || '',
|
entityToExplode: params.process_model_id || '',
|
||||||
entityType: 'process-model-id',
|
entityType: 'process-model-id',
|
||||||
|
|
Loading…
Reference in New Issue