chg: [workflows] Added view and editor links

pull/8530/head
Sami Mokaddem 2022-05-04 10:46:06 +02:00
parent 503f2aa08d
commit 43acefed2c
No known key found for this signature in database
GPG Key ID: 164C473F627A06FA
2 changed files with 10 additions and 0 deletions

View File

@ -1635,6 +1635,11 @@ $divider = $this->element('/genericElements/SideMenu/side_menu_divider');
'url' => '/workflows/edit/' . h($id),
'text' => __('Edit Workflow')
));
echo $this->element('/genericElements/SideMenu/side_menu_link', array(
'element_id' => 'editor',
'url' => '/workflows/editor/' . h($id),
'text' => __('Edit Workflow in editor')
));
echo $this->element('/genericElements/SideMenu/side_menu_link', array(
'url' => '/admin/audit_logs/index/model:Workflows/model_id:' . h($id),
'text' => __('View worflow history'),

View File

@ -61,6 +61,11 @@
'title' => __('Workflows'),
'description' => __('You can create workflows relying on pipeline hooks to that can listen to triggers and then perform actions depending on some conditions'),
'actions' => [
[
'url' => $baseurl . '/workflows/view/',
'url_params_data_paths' => ['Workflow.id'],
'icon' => 'eye'
],
[
'url' => $baseurl . '/workflows/editor/',
'url_params_data_paths' => ['Workflow.id'],