tuning ui and adding adaptive themeing to extension
This commit is contained in:
@@ -24,8 +24,12 @@ async def list_credentials():
|
||||
result = await session.execute(select(Credential))
|
||||
credentials = result.scalars().all()
|
||||
|
||||
# Also return a simple map of platform -> has_credentials for UI convenience
|
||||
platforms_with_creds = {c.platform: True for c in credentials}
|
||||
|
||||
return jsonify({
|
||||
"items": [c.to_dict(include_data=False) for c in credentials]
|
||||
"items": [c.to_dict(include_data=False) for c in credentials],
|
||||
"platforms": platforms_with_creds,
|
||||
})
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user