From 2f8a3bf4712e43a15fe210b9e4cd2d1839507a27 Mon Sep 17 00:00:00 2001 From: Julien Louis Date: Thu, 28 Nov 2024 11:38:45 +0100 Subject: [PATCH] refresh tree button + go to study list when deleting study --- .../entity/entity.component.abstract.ts | 2 +- .../studies/study/study-tree.component.html | 6 ++++ .../src/app/studies/study/tree.service.ts | 28 +++++++++++++------ .../studies/tree/study-node.component.html | 1 + .../app/studies/tree/study-node.component.ts | 8 ++++++ shanoir-ng-front/src/app/tree/tree.model.ts | 5 +++- 6 files changed, 39 insertions(+), 11 deletions(-) diff --git a/shanoir-ng-front/src/app/shared/components/entity/entity.component.abstract.ts b/shanoir-ng-front/src/app/shared/components/entity/entity.component.abstract.ts index 9ad482d269..7e3d628b18 100644 --- a/shanoir-ng-front/src/app/shared/components/entity/entity.component.abstract.ts +++ b/shanoir-ng-front/src/app/shared/components/entity/entity.component.abstract.ts @@ -404,7 +404,7 @@ export abstract class EntityComponent implements OnDestroy, On } delete(): void { - this.openDeleteConfirmDialog(this.entity) + this.openDeleteConfirmDialog(this.entity); } protected openDeleteConfirmDialog = (entity: T) => { diff --git a/shanoir-ng-front/src/app/studies/study/study-tree.component.html b/shanoir-ng-front/src/app/studies/study/study-tree.component.html index eb4d41b05c..28c711fea6 100644 --- a/shanoir-ng-front/src/app/studies/study/study-tree.component.html +++ b/shanoir-ng-front/src/app/studies/study/study-tree.component.html @@ -12,6 +12,12 @@ along with this program. If not, see https://www.gnu.org/licenses/gpl-3.0.html -->
+