fix: catelog tabs use urlwidget bind instead of invalid actiontype:link — Button does not handle actiontype in opts, only in binds
This commit is contained in:
parent
70b5502a18
commit
f85913a235
@ -33,12 +33,21 @@
|
|||||||
"widgettype":"Button",
|
"widgettype":"Button",
|
||||||
"options":{
|
"options":{
|
||||||
"label":"{{c.catelogname}}",
|
"label":"{{c.catelogname}}",
|
||||||
"actiontype":"link",
|
|
||||||
{% if c.catelogid == ns.active_catelogid %}
|
{% if c.catelogid == ns.active_catelogid %}
|
||||||
"css":"primary",
|
"css":"primary",
|
||||||
{% endif %}
|
{% endif %}
|
||||||
"url":"{{entire_url('/llmage/llm_dialog.ui')}}?id={{params_kw.id}}&catelogid={{c.catelogid}}"
|
"url":"{{entire_url('/llmage/llm_dialog.ui')}}?id={{params_kw.id}}&catelogid={{c.catelogid}}"
|
||||||
}
|
},
|
||||||
|
"binds":[{
|
||||||
|
"wid":"self",
|
||||||
|
"event":"click",
|
||||||
|
"actiontype":"urlwidget",
|
||||||
|
"target":"app.sage_main_content",
|
||||||
|
"mode":"replace",
|
||||||
|
"options":{
|
||||||
|
"url":"{{entire_url('/llmage/llm_dialog.ui')}}?id={{params_kw.id}}&catelogid={{c.catelogid}}"
|
||||||
|
}
|
||||||
|
}]
|
||||||
}{% if not loop.last %},{% endif %}
|
}{% if not loop.last %},{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
]
|
]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user