From 154b06541e5de3645fde16ff26d6c86643061b2f Mon Sep 17 00:00:00 2001 From: Atte Moisio Date: Wed, 3 Apr 2024 15:37:57 +0300 Subject: [PATCH] Add is_default field to /admin/libraries response it's not super clear currently in the admin UI that collections defined for default library are applied to all other libraries. By passing this extra field we can then display some extra info on the admin UI side. --- api/admin/controller/library_settings.py | 1 + 1 file changed, 1 insertion(+) diff --git a/api/admin/controller/library_settings.py b/api/admin/controller/library_settings.py index 3c05cd385..7fd020bef 100644 --- a/api/admin/controller/library_settings.py +++ b/api/admin/controller/library_settings.py @@ -83,6 +83,7 @@ def process_get(self) -> Response: name=library.name, short_name=library.short_name, settings=settings, + is_default=library.is_default, ) ] return Response(