Skip to content

Commit

Permalink
Plug share feature for viewer config
Browse files Browse the repository at this point in the history
  • Loading branch information
aranega committed Jan 14, 2025
1 parent 53c8524 commit 601bb6d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ export const GlobalContextProvider: React.FC<GlobalContextProviderProps> = ({ ch
ws.visibilities,
ws.neuronGroups,
ws.emViewerSettings,
ws.viewers,
);
workspace.viewers = ws.viewers;

Expand Down
3 changes: 2 additions & 1 deletion applications/visualizer/frontend/src/models/workspace.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,13 +78,14 @@ export class Workspace {
visibilities?: Record<string, ViewerData>,
neuronGroups?: Record<string, NeuronGroup>,
emViewerSettings?: EMViewerSettings,
viewers?: Record<ViewerType, boolean>,
) {
this.id = id;
this.name = name;
this.activeDatasets = activeDatasets;
this.availableNeurons = {};
this.activeNeurons = activeNeurons || new Set();
this.viewers = {
this.viewers = viewers || {
[ViewerType.Graph]: true,
[ViewerType.ThreeD]: false,
[ViewerType.EM]: false,
Expand Down

0 comments on commit 601bb6d

Please sign in to comment.