From 2e092dfebfb1388c52232c2697a4a2e92e556136 Mon Sep 17 00:00:00 2001 From: Hans Kallekleiv <16436291+HansKallekleiv@users.noreply.github.com> Date: Fri, 20 Sep 2024 14:51:55 +0200 Subject: [PATCH] Add more shared settings --- .../src/modules/2DViewer/settings/settings.tsx | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/frontend/src/modules/2DViewer/settings/settings.tsx b/frontend/src/modules/2DViewer/settings/settings.tsx index 24cecf9d5..86b015010 100644 --- a/frontend/src/modules/2DViewer/settings/settings.tsx +++ b/frontend/src/modules/2DViewer/settings/settings.tsx @@ -31,7 +31,9 @@ import { RealizationSurfaceLayer } from "../layers/implementations/layers/Realiz import { StatisticalSurfaceLayer } from "../layers/implementations/layers/StatisticalSurfaceLayer/StatisticalSurfaceLayer"; import { Ensemble } from "../layers/implementations/settings/Ensemble"; import { Realization } from "../layers/implementations/settings/Realization"; +import { SurfaceAttribute } from "../layers/implementations/settings/SurfaceAttribute"; import { SurfaceName } from "../layers/implementations/settings/SurfaceName"; +import { TimeOrInterval } from "../layers/implementations/settings/TimeOrInterval"; import { Group, Item, instanceofGroup } from "../layers/interfaces"; export function Settings(props: ModuleSettingsProps): React.ReactNode { @@ -108,6 +110,12 @@ export function Settings(props: ModuleSettingsProps): React.ReactNode { case "surface_name": groupDelegate.prependChild(new SharedSetting(new SurfaceName())); return; + case "surface_attribute": + groupDelegate.prependChild(new SharedSetting(new SurfaceAttribute())); + return; + case "Date": + groupDelegate.prependChild(new SharedSetting(new TimeOrInterval())); + return; } } @@ -326,6 +334,16 @@ const LAYER_ACTIONS: LayersActionGroup[] = [ icon: , label: "Surface Name", }, + { + identifier: "surface_attribute", + icon: , + label: "Surface Attribute", + }, + { + identifier: "Date", + icon: , + label: "Date", + }, ], }, ];