mirror of
https://github.com/lnbits/lnbits.git
synced 2025-03-26 17:51:53 +01:00
Fix extension navigation (#2236)
* fix: avoid `path` clash with other routes (`/withdraw` in this case) * fix: refresh user state after extension action * chore: fix `mypy`
This commit is contained in:
parent
55fed49be1
commit
22ea83e843
@ -185,7 +185,7 @@
|
||||
flat
|
||||
color="primary"
|
||||
type="a"
|
||||
:href="extension.id"
|
||||
:href="extension.id + '/'"
|
||||
>{%raw%}{{ $t('open') }}{%endraw%}</q-btn
|
||||
>
|
||||
<q-btn
|
||||
|
@ -167,6 +167,9 @@ async def extensions_install(
|
||||
)
|
||||
)
|
||||
|
||||
# refresh user state. Eg: enabled extensions.
|
||||
user = await get_user(user.id) or user
|
||||
|
||||
return template_renderer().TemplateResponse(
|
||||
"core/extensions.html",
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user