-
Notifications
You must be signed in to change notification settings - Fork 15
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
chore: Make graph visible in GUI, and show a proper error message #66
Conversation
@@ -339,9 +339,14 @@ private function getVisualization($workflow, $format): string | |||
throw new \InvalidArgumentException($this->trans('workflow_cmd_not_found', ['dot'])); | |||
} | |||
|
|||
$workflowRepository = $this->repository->find($workflow); | |||
|
|||
if ($workflowRepository && !$workflowRepository['enabled']) { |
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.
Possibly rewrite as !($workflowRepository['enabled'] ?? false)
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.
I did split it up in two messengers, so it become more clear for enduser
@@ -114,3 +114,4 @@ workflow_gui: 'Workflow GUI' | |||
workflow_problem_creating_workflow_invalid_characters: 'Please use only these characters: "a-z", "A-Z" and "_"' | |||
workflow_gui_workflow_with_name_already_exists: 'Workflow with bane already exists' | |||
workflow_gui_clone: 'Clone' | |||
workflow_gui_enable_message: 'Please enable and save the workflow, before you can see the graph' |
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 sentence is structurally incorrect. Suggestion:
Please enable and save the workflow to display graph visualization.
or something similar.
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.
Ah my bad English again, thank you
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.
I don't see an update yet.
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.
@kjkooistra-youwe should be oke now
191e1d9
to
50a2883
Compare
f6fa6b9
to
b5ca662
Compare
Related to issue #65