From 2baa01846f3a01e6d447cb0fbd664b97a25dd490 Mon Sep 17 00:00:00 2001 From: genja Date: Sun, 25 Oct 2026 19:26:28 +0100 Subject: [PATCH] added marking for affected nodes in hierarchy suggestions --- .../hierarchy-tree-editor.component.html | 25 ++++++++++----- .../hierarchy-tree-editor.component.scss | 15 ++++++++- .../hierarchy-tree-editor.component.ts | 31 +++++++++++++++++++ 3 files changed, 63 insertions(+), 8 deletions(-) diff --git a/webapp/src/app/modules/hierarchy/hierarchy-chart/hierarchy-tree-editor/hierarchy-tree-editor.component.html b/webapp/src/app/modules/hierarchy/hierarchy-chart/hierarchy-tree-editor/hierarchy-tree-editor.component.html index e3bd4650..d1ed9126 100644 --- a/webapp/src/app/modules/hierarchy/hierarchy-chart/hierarchy-tree-editor/hierarchy-tree-editor.component.html +++ b/webapp/src/app/modules/hierarchy/hierarchy-chart/hierarchy-tree-editor/hierarchy-tree-editor.component.html @@ -1,4 +1,7 @@
+ @if (editorStatus === 'in-progress') { + In Bearbeitung + } @@ -22,7 +25,11 @@
- @if (!isManager && numberOfSuggestions <= 0) { + @if (readOnly) { + Nur Ansicht + } @else if ( + !isManager && numberOfSuggestions <= 0 && editorStatus !== 'in-progress' + ) {
{{ isSuggestion && isManager @@ -84,12 +89,17 @@ } @else { } -
{{ node.name_de }} + @if (node.affected || node.modified) { + + } @if (node.link_de) { {{ node.link_de }} @@ -111,7 +121,7 @@
- @if (node.modified !== 'deleted') { + @if (!readOnly && node.modified !== 'deleted') { } - @if (node.type === 'leaf' || node.modified) { + @if (!readOnly && (node.type === 'leaf' || node.modified)) { @if (node.modified === 'deleted') {