feat: add is isAvailable flag
This commit is contained in:
parent
584b667637
commit
0195c242c2
1 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue