-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ms2/process editor #126
Ms2/process editor #126
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Aside from the minor comments and the bpmn stuff (which I can't completly follow), it looks good to me
@@ -119,9 +117,9 @@ const Processes: FC<ProcessProps> = () => { | |||
{menu} | |||
<Divider style={{ margin: '4px 0' }} /> | |||
<Space style={{ display: 'flex', justifyContent: 'center' }}> | |||
<Button type="text" icon={<PlusOutlined />} onClick={createProcess}> | |||
<ProcessCreationButton type="text" icon={<PlusOutlined />}> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Permission check is missing (AuthCan)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is also the case in version-toolbar.tsx:199
@@ -61,7 +61,7 @@ const Modeler: FC<ModelerProps> = ({ minimized, ...props }) => { | |||
// This is not the most recent instance, so don't do anything. | |||
if (active !== modeler.current) return; | |||
|
|||
if (editingDisabled) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
editingDisabled
seems to be unused
return ( | ||
<Modal | ||
title="Create new Process" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -154,23 +196,26 @@ const VersionToolbar: React.FC<VersionToolbarProps> = () => { | |||
<div style={{ position: 'absolute', zIndex: 10, padding: '12px', top: '80px' }}> | |||
<Space.Compact size="large" direction="vertical"> | |||
<Tooltip title="Create as new process"> | |||
<Button icon={<PlusOutlined />} onClick={openNewProcessModal}></Button> | |||
<ProcessCreationButton |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Permission check is missing (AuthCan)
@@ -119,9 +117,9 @@ const Processes: FC<ProcessProps> = () => { | |||
{menu} | |||
<Divider style={{ margin: '4px 0' }} /> | |||
<Space style={{ display: 'flex', justifyContent: 'center' }}> | |||
<Button type="text" icon={<PlusOutlined />} onClick={createProcess}> | |||
<ProcessCreationButton type="text" icon={<PlusOutlined />}> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is also the case in version-toolbar.tsx:199
Summary
Minor bugfixes in process editor concerning process versions. Processes can be added now from scratch in overview page.
Details