Commit 9a242e4b authored by Martin Schorb's avatar Martin Schorb
Browse files

bugfix, hide section for FIBSEM tile views

parent 7a451577
Pipeline #34847 passed with stage
in 1 minute and 1 second
......@@ -95,7 +95,7 @@ def update_mc_owner_dd(init_in, new_owner, thispage, dd_own_in):
State({'component': 'mc_new_enabled', 'module': MATCH}, 'data')],
prevent_initial_call=True)
def pointmatch_mcown_dd_sel(mc_own_sel, new_mc, mc_dd_opt, init_match, thispage, new_enabled='False'):
trigger = hf.trigger()
all_mcs = dash.no_update
thispage = thispage.lstrip('/')
......@@ -105,6 +105,9 @@ def pointmatch_mcown_dd_sel(mc_own_sel, new_mc, mc_dd_opt, init_match, thispage,
if thispage == '' or thispage not in hf.trigger(key='module'):
raise PreventUpdate
if None in [mc_own_sel, new_mc, mc_dd_opt, init_match, thispage]:
raise PreventUpdate
if 'mc_owner_dd' in trigger:
if mc_own_sel == '':
raise PreventUpdate
......
......@@ -71,6 +71,8 @@ for idx in range(params.max_tileviews):
ol = dash.callback_context.outputs_list
thisimtype = tileim_idx = ol[0]['id']['component'].split('_')[0]
tileim_idx = ol[0]['id']['component'].split('_')[-1]
if (not stack_sel == '-') and (allstacks is not None):
......@@ -117,6 +119,9 @@ for idx in range(params.max_tileviews):
if o_min == o_max:
slicestyle = {'display': 'none'}
if owner == 'FIBSEM' and thisimtype == 'tileim':
slicestyle = {'display': 'none'}
url = params.render_base_url + params.render_version + 'owner/' + owner + '/project/' + project \
+ '/stack/' + stack_sel
url1 = url + '/tileIds'
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment