open visualization page with settings

This commit is contained in:
2023-03-18 09:42:04 +01:00
parent 6d8af4fdc6
commit b6045eda22
4 changed files with 26 additions and 3 deletions

View File

@@ -63,6 +63,12 @@ export class VisualizationPageComponent implements OnInit, AfterViewInit {
plotJobActive = false;
constructor(private plotService: PlotService, private snackBar: MatSnackBar) {
const params = new URLSearchParams(window.location.search);
if (!this.defaultConfig && params.get("config")) {
const config = JSON.parse(params.get("config")!);
this.defaultConfig = config;
}
}
showError(message:string) {
@@ -248,4 +254,13 @@ toggleGallery(event: Event){
);
return request;
}
serializedConfig(): string {
try{
const config = this.createPlotConfig();
return JSON.stringify(config);
}catch (e) {
return "";
}
}
}