mirror of
https://github.com/lnbits/lnbits.git
synced 2025-09-29 13:22:37 +02:00
feat: add is isAvailable
flag
This commit is contained in:
@@ -123,7 +123,8 @@ async def extensions_install(
|
|||||||
"shortDescription": ext.short_description,
|
"shortDescription": ext.short_description,
|
||||||
"stars": ext.stars,
|
"stars": ext.stars,
|
||||||
"dependencies": ext.dependencies,
|
"dependencies": ext.dependencies,
|
||||||
"isInstalled": ext.id in all_extensions,
|
"isInstalled": ext.id in installed_extensions_ids,
|
||||||
|
"isAvailable": ext.id in all_extensions,
|
||||||
"isActive": not ext.id in inactive_extensions,
|
"isActive": not ext.id in inactive_extensions,
|
||||||
"latestRelease": dict(ext.latest_release)
|
"latestRelease": dict(ext.latest_release)
|
||||||
if ext.latest_release
|
if ext.latest_release
|
||||||
|
Reference in New Issue
Block a user