From 959524d0ba132f2a4c7d03c66b6916b3b8a1adf0 Mon Sep 17 00:00:00 2001 From: cchndl <28229098+cchndl@users.noreply.github.com> Date: Thu, 28 May 2026 14:05:32 +0200 Subject: [PATCH] re-introduce configurable actions for details/cart --- .../batch-view/batch-view.component.html | 95 +------------------ .../batch-view/batch-view.component.ts | 8 ++ .../dataset-detail.component.html | 27 +----- .../dataset-detail.component.ts | 8 ++ 4 files changed, 25 insertions(+), 113 deletions(-) diff --git a/src/app/datasets/batch-view/batch-view.component.html b/src/app/datasets/batch-view/batch-view.component.html index 426ffb2f13..49eb18ce39 100644 --- a/src/app/datasets/batch-view/batch-view.component.html +++ b/src/app/datasets/batch-view/batch-view.component.html @@ -1,44 +1,6 @@
-
-
- You are currently editing - {{ editingPublishedDataDoi }} - dataset list. -
- - - +
- - - - - - - - - +
- { if (result) { this.datasetList = result; + this.actionItems.datasets = result; this.hasBatch = result.length > 0; } }), diff --git a/src/app/datasets/dataset-detail/dataset-detail/dataset-detail.component.html b/src/app/datasets/dataset-detail/dataset-detail/dataset-detail.component.html index 814e67f921..f1799a35f7 100644 --- a/src/app/datasets/dataset-detail/dataset-detail/dataset-detail.component.html +++ b/src/app/datasets/dataset-detail/dataset-detail/dataset-detail.component.html @@ -1,27 +1,8 @@ -
- -
- - Public - -
-
+
diff --git a/src/app/datasets/dataset-detail/dataset-detail/dataset-detail.component.ts b/src/app/datasets/dataset-detail/dataset-detail/dataset-detail.component.ts index 47b67b8b6c..ca78cbee52 100644 --- a/src/app/datasets/dataset-detail/dataset-detail/dataset-detail.component.ts +++ b/src/app/datasets/dataset-detail/dataset-detail/dataset-detail.component.ts @@ -48,6 +48,10 @@ import { OutputSampleDto, } from "@scicatproject/scicat-sdk-ts-angular"; import { AttachmentService } from "shared/services/attachment.service"; +import { + ActionItemDataset, + ActionItems, +} from "shared/modules/configurable-actions/configurable-action.interfaces"; /** * Component to show details for a data set, using the @@ -75,6 +79,9 @@ export class DatasetDetailComponent implements OnInit, OnDestroy { localization = "dataset"; dataset: OutputDatasetObsoleteDto | undefined; + actionItems: ActionItems = { + datasets: [], + }; datasetWithout$ = this.store.select(selectCurrentDatasetWithoutFileInfo); attachments$ = this.store.select(selectCurrentAttachments); loading$ = this.store.select(selectIsLoading); @@ -107,6 +114,7 @@ export class DatasetDetailComponent implements OnInit, OnDestroy { this.subscriptions.push( this.store.select(selectCurrentDataset).subscribe((dataset) => { this.dataset = dataset; + this.actionItems.datasets = [dataset]; if (this.dataset) { combineLatest([this.accessGroups$, this.isAdmin$]).subscribe( ([groups, isAdmin]) => {