Update conditional rendering logic for displaying list of workflows

Ensure the workflow modal is displayed when either workflows_availables or workflows are non-empty. This improves the user interface by correctly triggering the modal in more scenarios.

- OP#762
- https://champs-libres.openproject.com/work_packages/762
- Vendee/accent-suivi-developpement#1254
This commit is contained in:
Julien Fastré 2024-10-24 15:11:07 +02:00
parent 4e0a421a03
commit 97729de66d
Signed by: julienfastre
GPG Key ID: BDE2190974723FCB

View File

@ -103,7 +103,7 @@
<div class="item-row">
<div class="item-col">
<ul class="record_actions">
<li v-if="d.workflows_availables.length > 0">
<li v-if="d.workflows_availables.length > 0 || d.workflows.length > 0">
<list-workflow-modal
:workflows="d.workflows"
:allowCreate="true"