mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-13 13:54:23 +00:00
Prevent workflow execution for finalized transitions
Added a check in the workflow-show page script to stop the execution if a transition is marked as finalized (`toFinal`). This ensures that transitions leading to final states are not processed further.
This commit is contained in:
parent
8e34f6962a
commit
0439c29305
@ -25,6 +25,10 @@ window.addEventListener('DOMContentLoaded', function() {
|
|||||||
for (let transition of froms) {
|
for (let transition of froms) {
|
||||||
for (let input of transition.querySelectorAll('input')) {
|
for (let input of transition.querySelectorAll('input')) {
|
||||||
if (input.checked) {
|
if (input.checked) {
|
||||||
|
if ('1' === input.dataset.toFinal) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
if ('1' === input.dataset.isSentExternal) {
|
if ('1' === input.dataset.isSentExternal) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -151,6 +155,7 @@ window.addEventListener('DOMContentLoaded', function() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
return true;
|
||||||
},
|
},
|
||||||
toggle_callback: function (c, dir) {
|
toggle_callback: function (c, dir) {
|
||||||
for (let div of c) {
|
for (let div of c) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user