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",
|
||||
"options":{
|
||||
"label":"{{c.catelogname}}",
|
||||
"actiontype":"link",
|
||||
{% if c.catelogid == ns.active_catelogid %}
|
||||
"css":"primary",
|
||||
{% endif %}
|
||||
"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 %}
|
||||
{% endfor %}
|
||||
]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user