Skip to content

Conversation

@fabiannaether
Copy link
Contributor

@fabiannaether fabiannaether commented Mar 6, 2025

  • confirm delete dialog is only displayed when participants are deleted
  • this dialog should also be displayed for collaborations
  • it is only skipped for process type == "PROCESS"

@fabiannaether fabiannaether self-assigned this Mar 6, 2025
) {
const isParticipant = processModelNode.processType === "PARTICIPANT";
if (!skipConfirm && isParticipant) {
const isProcess = processModelNode.processType === "PROCESS";
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ist das ein Bugfix? Könntest du mir kurz fachlich erklären, worum geht es?

Ich würde auch empfehlen, ProcessModelInformation.processType als Enum zu modellieren (wie im Backend).

Copy link
Contributor Author

@fabiannaether fabiannaether Mar 7, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In einer vorherigen Version wurde der Bestätigungsdialog auch beim Löschen von Kollaborationen angezeigt. Damit wurde gezeigt, dass alle Prozessmodelle (= Teilnehmer) der Kollaboration gelöscht werden. Das heißt: In den Fällen processType === "COLLABORATION" oder processType === "PARTICIPANT" gibt es Child- bzw. Parent-Verbindungen. Ich meine, dass die Hinweismeldung am UI auch beim Löschen von Kollaborationen nicht schadet. Nur bei processType === "PROCESS" gibt es keine Verbindungen und damit auch keinen Dialog. Finale Entscheidung, ob das fachlich passt, bitte von @hehnle.

ProcessModelInformation.processType als enum definiert - done

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Danke für die Erklärung!

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants