mirror of
https://github.com/status-im/spiff-arena.git
synced 2025-02-06 15:13:45 +00:00
Revert "minor permissions related fixes for the new ui."
This reverts commit 284d12e32cf76da7e42671065ba87300c13d6307.
This commit is contained in:
parent
284d12e32c
commit
5b7a4c10e2
@ -14,7 +14,6 @@ export const useUriListForPermissions = () => {
|
|||||||
processInstanceCreatePath: `/v1.0/process-instances/${params.process_model_id}`,
|
processInstanceCreatePath: `/v1.0/process-instances/${params.process_model_id}`,
|
||||||
processInstanceErrorEventDetails: `/v1.0/event-error-details/${params.process_model_id}/${params.process_instance_id}`,
|
processInstanceErrorEventDetails: `/v1.0/event-error-details/${params.process_model_id}/${params.process_instance_id}`,
|
||||||
processInstanceListPath: '/v1.0/process-instances',
|
processInstanceListPath: '/v1.0/process-instances',
|
||||||
processInstanceListForMePath: `/v1.0/process-instances/for-me`,
|
|
||||||
processInstanceLogListPath: `/v1.0/logs/${params.process_model_id}/${params.process_instance_id}`,
|
processInstanceLogListPath: `/v1.0/logs/${params.process_model_id}/${params.process_instance_id}`,
|
||||||
processInstanceReportListPath: '/v1.0/process-instances/reports',
|
processInstanceReportListPath: '/v1.0/process-instances/reports',
|
||||||
processInstanceResetPath: `/v1.0/process-instance-reset/${params.process_model_id}/${params.process_instance_id}`,
|
processInstanceResetPath: `/v1.0/process-instance-reset/${params.process_model_id}/${params.process_instance_id}`,
|
||||||
|
@ -1041,13 +1041,6 @@ export default function ProcessInstanceShow({ variant }: OwnProps) {
|
|||||||
targetUris.messageInstanceListPath
|
targetUris.messageInstanceListPath
|
||||||
);
|
);
|
||||||
|
|
||||||
const getMessageDisplay = () => {
|
|
||||||
if (canViewMsgs) {
|
|
||||||
return <MessageInstanceList processInstanceId={processInstance.id} />;
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
};
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Tabs>
|
<Tabs>
|
||||||
<TabList aria-label="List of tabs">
|
<TabList aria-label="List of tabs">
|
||||||
@ -1084,7 +1077,9 @@ export default function ProcessInstanceShow({ variant }: OwnProps) {
|
|||||||
processInstanceId={processInstance.id}
|
processInstanceId={processInstance.id}
|
||||||
/>
|
/>
|
||||||
</TabPanel>
|
</TabPanel>
|
||||||
<TabPanel>{getMessageDisplay()}</TabPanel>
|
<TabPanel>
|
||||||
|
<MessageInstanceList processInstanceId={processInstance.id} />
|
||||||
|
</TabPanel>
|
||||||
</TabPanels>
|
</TabPanels>
|
||||||
</Tabs>
|
</Tabs>
|
||||||
);
|
);
|
||||||
|
@ -70,7 +70,7 @@ export default function ProcessModelShow() {
|
|||||||
[targetUris.processModelShowPath]: ['PUT', 'DELETE'],
|
[targetUris.processModelShowPath]: ['PUT', 'DELETE'],
|
||||||
[targetUris.processModelTestsPath]: ['POST'],
|
[targetUris.processModelTestsPath]: ['POST'],
|
||||||
[targetUris.processModelPublishPath]: ['POST'],
|
[targetUris.processModelPublishPath]: ['POST'],
|
||||||
[targetUris.processInstanceListForMePath]: ['POST'],
|
[targetUris.processInstanceListPath]: ['GET'],
|
||||||
[targetUris.processInstanceCreatePath]: ['POST'],
|
[targetUris.processInstanceCreatePath]: ['POST'],
|
||||||
[targetUris.processModelFileCreatePath]: ['POST', 'PUT', 'GET', 'DELETE'],
|
[targetUris.processModelFileCreatePath]: ['POST', 'PUT', 'GET', 'DELETE'],
|
||||||
};
|
};
|
||||||
@ -696,11 +696,7 @@ export default function ProcessModelShow() {
|
|||||||
</Can>
|
</Can>
|
||||||
</Stack>
|
</Stack>
|
||||||
{processModelFilesSection()}
|
{processModelFilesSection()}
|
||||||
<Can
|
<Can I="GET" a={targetUris.processInstanceListPath} ability={ability}>
|
||||||
I="POST"
|
|
||||||
a={targetUris.processInstanceListForMePath}
|
|
||||||
ability={ability}
|
|
||||||
>
|
|
||||||
<ProcessInstanceListTable
|
<ProcessInstanceListTable
|
||||||
headerElement={<h2>My Process Instances</h2>}
|
headerElement={<h2>My Process Instances</h2>}
|
||||||
filtersEnabled={false}
|
filtersEnabled={false}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user