Skip to content

Commit b98ca33

Browse files
committed
highlighting outgoing connections after gateway in bpmn
1 parent 1a557d6 commit b98ca33

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

src/components/BPMN/BpmnDiagram.vue

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ function applyCustomStyling(highlightColor, highlightElementId, viewer) {
205205
}
206206
}
207207
}
208-
208+
// must be tested
209209
// Animate the highlighting in order
210210
directPath.forEach((element, index) => {
211211
setTimeout(
@@ -215,6 +215,14 @@ function applyCustomStyling(highlightColor, highlightElementId, viewer) {
215215
} else {
216216
applyHighlight(element, "highlight");
217217
}
218+
219+
// If the element is a Gateway, apply highlights to all outgoing connections
220+
if (element.type === "bpmn:ParallelGateway" || element.type === "bpmn:ExclusiveGateway") {
221+
const outgoing = element.outgoing || [];
222+
outgoing.forEach((connection) => {
223+
applyHighlight(connection.target, "highlight-previous");
224+
});
225+
}
218226
},
219227
0.025 * 1000 * index,
220228
);

src/views/common/LoginView.vue

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,10 @@ const callback = async (response) => {
116116
}
117117
if (isUnipuEmail(decodedToken.email) || decodedToken.email === "lukablaskovic2000@gmail.com") {
118118
let response = await mainStore.handleLogin(decodedToken);
119-
if (response.status === "success") snackBarStore.pushMessage("Uspješna prijava!", "success");
119+
let ime = decodedToken.given_name || "";
120+
let prezime = decodedToken.family_name || "";
121+
122+
if (response.status === "success") snackBarStore.pushMessage(`Dobrodošli, ${ime} ${prezime}!`, "success");
120123
await Utils.wait(1);
121124
} else {
122125
snackBarStore.pushMessage("Molimo koristite UNIPU e-mail za prijavu", "warning");

0 commit comments

Comments
 (0)