From 9cf7c8f3b3612f869994234f65cf935b486993bf Mon Sep 17 00:00:00 2001 From: guerler Date: Sun, 17 Nov 2024 15:36:16 +0300 Subject: [PATCH] Add tracks to api call, update package version --- package.json | 2 +- src/api/visualizations.ts | 1 + src/components/SidePanel.vue | 2 ++ 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 85a1954..ef96993 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "charts" ], "license": "MIT", - "version": "0.0.28", + "version": "0.0.29", "type": "module", "main": "./dist/galaxy-charts.umd.cjs", "module": "./dist/galaxy-charts.js", diff --git a/src/api/visualizations.ts b/src/api/visualizations.ts index e5a3645..93538fb 100644 --- a/src/api/visualizations.ts +++ b/src/api/visualizations.ts @@ -5,6 +5,7 @@ import { InputValuesType } from "@/types" interface VisualizationConfig { dataset_id: string; settings: InputValuesType; + tracks: Array; } export async function visualizationsCreate(type: string, title: string, config: VisualizationConfig): Promise { diff --git a/src/components/SidePanel.vue b/src/components/SidePanel.vue index e45efa7..d33298a 100644 --- a/src/components/SidePanel.vue +++ b/src/components/SidePanel.vue @@ -52,6 +52,7 @@ async function onSave(): Promise { await visualizationsSave(props.visualizationId, props.visualizationTitle, { dataset_id: props.datasetId, settings: props.settingValues, + tracks: props.trackValues, }); message.value = "Successfully saved."; messageType.value = "success"; @@ -59,6 +60,7 @@ async function onSave(): Promise { const newVisualizationId = await visualizationsCreate(props.name, props.visualizationTitle, { dataset_id: props.datasetId, settings: props.settingValues, + tracks: props.trackValues, }); if (newVisualizationId) { message.value = "Successfully created.";