Skip to content

Commit

Permalink
Add tracks to api call, update package version
Browse files Browse the repository at this point in the history
  • Loading branch information
guerler committed Nov 17, 2024
1 parent a9d32a5 commit 9cf7c8f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
1 change: 1 addition & 0 deletions src/api/visualizations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { InputValuesType } from "@/types"
interface VisualizationConfig {
dataset_id: string;
settings: InputValuesType;
tracks: Array<InputValuesType>;
}

export async function visualizationsCreate(type: string, title: string, config: VisualizationConfig): Promise<string | undefined> {
Expand Down
2 changes: 2 additions & 0 deletions src/components/SidePanel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,15 @@ async function onSave(): Promise<void> {
await visualizationsSave(props.visualizationId, props.visualizationTitle, {
dataset_id: props.datasetId,
settings: props.settingValues,
tracks: props.trackValues,
});
message.value = "Successfully saved.";
messageType.value = "success";
} else {
const newVisualizationId = await visualizationsCreate(props.name, props.visualizationTitle, {
dataset_id: props.datasetId,
settings: props.settingValues,
tracks: props.trackValues,
});
if (newVisualizationId) {
message.value = "Successfully created.";
Expand Down

0 comments on commit 9cf7c8f

Please sign in to comment.