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 = (
|
||||
<ProcessBreadcrumb
|
||||
hotCrumbs={[
|
||||
['Process Groups', '/admin'],
|
||||
['Process Groups', '/process-groups'],
|
||||
{
|
||||
entityToExplode: searchParams.get('process_model_id') || '',
|
||||
entityType: 'process-model-id',
|
||||
|
|
|
@ -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>
|
||||
);
|
||||
|
|
|
@ -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',
|
||||
|
|
|
@ -28,7 +28,7 @@ export default function ProcessGroupEdit() {
|
|||
<>
|
||||
<ProcessBreadcrumb
|
||||
hotCrumbs={[
|
||||
['Process Groups', '/admin'],
|
||||
['Process Groups', '/process-groups'],
|
||||
{
|
||||
entityToExplode: processGroup,
|
||||
entityType: 'process-group',
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -137,7 +137,7 @@ export default function ProcessGroupShow() {
|
|||
<>
|
||||
<ProcessBreadcrumb
|
||||
hotCrumbs={[
|
||||
['Process Groups', '/admin'],
|
||||
['Process Groups', '/process-groups'],
|
||||
{
|
||||
entityToExplode: processGroup,
|
||||
entityType: 'process-group',
|
||||
|
|
|
@ -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',
|
||||
|
|
|
@ -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',
|
||||
|
|
|
@ -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',
|
||||
|
|
|
@ -25,7 +25,7 @@ export default function ProcessModelEdit() {
|
|||
<>
|
||||
<ProcessBreadcrumb
|
||||
hotCrumbs={[
|
||||
['Process Groups', '/admin'],
|
||||
['Process Groups', '/process-groups'],
|
||||
{
|
||||
entityToExplode: processModel,
|
||||
entityType: 'process-model',
|
||||
|
|
|
@ -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',
|
||||
|
|
|
@ -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',
|
||||
|
|
|
@ -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',
|
||||
|
|
|
@ -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',
|
||||
|
|
|
@ -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',
|
||||
|
|
Loading…
Reference in New Issue