frontend CHANGE view of deleted nodes
keep basic info about the deleted nodes visible, just mark them as
deleted and handle them that way. Allow undo the particular change.
diff --git a/frontend/config/tree-indent.html b/frontend/config/tree-indent.html
index 2b279a5..9a29285 100644
--- a/frontend/config/tree-indent.html
+++ b/frontend/config/tree-indent.html
@@ -1,13 +1,17 @@
-<ng-container *ngIf="type == 'edit' || node['new']; else menu">
+<ng-container *ngIf="type == 'edit' || node['new'] || node['deleted']; else menu">
<img *ngIf="type == 'edit' && node['info']['type'] != 4" class="icon_action" src="assets/netopeer/icons/close.svg"
onmouseover="this.src='assets/netopeer/icons/close_active.svg'"
onmouseout="this.src='assets/netopeer/icons/close.svg'"
(click)="closeCreatingDialog(node)"/>
<img *ngIf="node['info']['type'] == 4 && (type == 'edit' || node['key'])" class="icon_action" src="assets/netopeer/icons/tree_empty.svg"/>
- <img *ngIf="type != 'edit' && node['dirty'] && !node['key']" class="icon_action" src="assets/netopeer/icons/close.svg"
+ <img *ngIf="type != 'edit' && node['dirty'] && !node['deleted'] && !node['key']" class="icon_action" src="assets/netopeer/icons/close.svg"
onmouseover="this.src='assets/netopeer/icons/close_active.svg'"
onmouseout="this.src='assets/netopeer/icons/close.svg'"
(click)="deleteSubtree(node)"/>
+ <img *ngIf="node['deleted']" class="icon_action" src="assets/netopeer/icons/close.svg"
+ onmouseover="this.src='assets/netopeer/icons/close_active.svg'"
+ onmouseout="this.src='assets/netopeer/icons/close.svg'"
+ (click)="cancelDelete(node)"/>
</ng-container>
<ng-template #menu >
<span *ngIf="type == 'root' || node['info']['config']; else empty"