From 0693d18b98fdfa09092108ff8f890d8e69d8af81 Mon Sep 17 00:00:00 2001 From: Jules Jean-Louis <114387374+jules-jean-louis1@users.noreply.github.com> Date: Tue, 12 Nov 2024 17:18:48 +0100 Subject: [PATCH] feat: Add further check to edit a lang (#36) * chore: wip add check when a lang is edited * fix: set published language as default only if it is published * chore: remove unnecessary print statements in update_lang function --------- Co-authored-by: Jules Jean-Louis --- .../form-languages.component.html | 5 +- .../form-languages.component.ts | 1 - admin/src/assets/i18n/en.json | 1 + admin/src/assets/i18n/fr.json | 1 + backend/api.py | 47 ++++++++----------- 5 files changed, 25 insertions(+), 30 deletions(-) diff --git a/admin/src/app/form-languages/form-languages.component.html b/admin/src/app/form-languages/form-languages.component.html index 43e736f..26a4160 100644 --- a/admin/src/app/form-languages/form-languages.component.html +++ b/admin/src/app/form-languages/form-languages.component.html @@ -71,9 +71,10 @@
- {{ 'LANG_MNGMT.DEFAULT_LANGUAGE' | translate }} ?: + {{ 'LANG_MNGMT.DEFAULT_LANGUAGE' | translate }} + ?:
-