Skip to content
Snippets Groups Projects
Commit f051d2d0 authored by Alexander Rose's avatar Alexander Rose
Browse files

use model.entry in volume-streaming

parent 25734028
No related branches found
No related tags found
No related merge requests found
...@@ -29,7 +29,7 @@ export const InitVolumeStreaming = StateAction.build({ ...@@ -29,7 +29,7 @@ export const InitVolumeStreaming = StateAction.build({
const method = getStreamingMethod(a && a.data); const method = getStreamingMethod(a && a.data);
return { return {
method: PD.Select<VolumeServerInfo.Kind>(method, [['em', 'EM'], ['x-ray', 'X-Ray']]), method: PD.Select<VolumeServerInfo.Kind>(method, [['em', 'EM'], ['x-ray', 'X-Ray']]),
id: PD.Text((a && a.data.models.length > 0 && a.data.models[0].label) || ''), id: PD.Text((a && a.data.models.length > 0 && a.data.models[0].entry) || ''),
serverUrl: PD.Text('https://ds.litemol.org'), serverUrl: PD.Text('https://ds.litemol.org'),
defaultView: PD.Text<VolumeStreaming.ViewTypes>(method === 'em' ? 'cell' : 'selection-box'), defaultView: PD.Text<VolumeStreaming.ViewTypes>(method === 'em' ? 'cell' : 'selection-box'),
behaviorRef: PD.Text('', { isHidden: true }) behaviorRef: PD.Text('', { isHidden: true })
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment