diff --git a/cookbook/serializer.py b/cookbook/serializer.py index 89314df01..04db8c1ad 100644 --- a/cookbook/serializer.py +++ b/cookbook/serializer.py @@ -1436,6 +1436,7 @@ class ServerSettingsSerializer(serializers.Serializer): privacy_url = serializers.CharField() imprint_url = serializers.CharField() hosted = serializers.BooleanField() + debug = serializers.BooleanField() class Meta: fields = '__ALL__' diff --git a/cookbook/views/api.py b/cookbook/views/api.py index b0c6a9b3c..afd414292 100644 --- a/cookbook/views/api.py +++ b/cookbook/views/api.py @@ -1980,6 +1980,7 @@ class ServerSettingsViewSet(viewsets.GenericViewSet): s['privacy_url'] = settings.PRIVACY_URL s['imprint_url'] = settings.IMPRINT_URL s['hosted'] = settings.HOSTED + s['debug'] = settings.DEBUG return Response(ServerSettingsSerializer(s, many=False).data) diff --git a/vue3/src/components/display/ShoppingListView.vue b/vue3/src/components/display/ShoppingListView.vue index 756adfe19..aebb315e2 100644 --- a/vue3/src/components/display/ShoppingListView.vue +++ b/vue3/src/components/display/ShoppingListView.vue @@ -2,8 +2,10 @@ {{ $t('Shopping_list') }} ({{useShoppingStore().stats.countUnchecked}}) - {{ $t('Recipes') }} ({{useShoppingStore().getAssociatedRecipes().length}}) + class="d-none d-md-block ms-1">{{ $t('Shopping_list') }} ({{ useShoppingStore().stats.countUnchecked }}) + {{ + $t('Recipes') + }} ({{ useShoppingStore().getAssociatedRecipes().length }})