From 702aef95b26ee5cebcbdf4106639d3e95fbd1025 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Munsch?= Date: Wed, 31 Jan 2024 17:14:26 +0100 Subject: [PATCH] Sur le header et footer: Couleur de la Range en BG --- CHANGELOG.md | 2 +- components/layout/AppFooter.vue | 6 +++++- components/layout/AppHeader.vue | 5 ++--- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 00c91cf..3bb77b9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,7 +15,7 @@ - [x] **[FO]** drapeau US -> UK - [x] **[BO/FO]** Footer: "Découvrez nos autres marques" passe dans settings et i18n - Sur les produits: - - [ ] **[FO]** Sur le header et footer: Couleur de la **Range** en BG + - [x] **[FO]** Sur le header et footer: Couleur de la **Range** en BG - [ ] **[FO]** Sur la modal: plus de color et title centré - [x] **[FO]** Align flex center vertical et horizontal pour les views (brands.index -> home, ranges.index, products.index) diff --git a/components/layout/AppFooter.vue b/components/layout/AppFooter.vue index 887dd14..eea303d 100644 --- a/components/layout/AppFooter.vue +++ b/components/layout/AppFooter.vue @@ -3,7 +3,7 @@ id="footer" ref="footer" class="container-fluid flex-grow-0" - :style="`background-color: ${activeBrand?.color} !important`" + :style="`background-color: ${activeRange ? activeRange.color : activeBrand?.color} !important`" >
@@ -93,6 +93,7 @@ export default defineComponent({ route: RouteLocationNormalizedLoaded; brands: Array; activeBrand: TypeBrand|null; + activeRange: TypeRange|null; modules: Array<{ name: string; }>; @@ -108,6 +109,7 @@ export default defineComponent({ }, brands: [], activeBrand: null, + activeRange: null, modules: [Scrollbar], }; }, @@ -118,6 +120,7 @@ export default defineComponent({ useAppStore().setActiveBrand(null); } this.activeBrand = useAppStore().activeBrand; + this.activeRange = useAppStore().activeRange; }, }, mounted() { @@ -125,6 +128,7 @@ export default defineComponent({ window.ipcRendererObject.getAppInfo().then((appInfo) => {this.appInfo = appInfo;}); this.brands = useAppStore().data.brands(); this.activeBrand = useAppStore().activeBrand; + this.activeRange = useAppStore().activeRange; const { locale } = useAppStore().getI18n(); this.locale = locale; }, diff --git a/components/layout/AppHeader.vue b/components/layout/AppHeader.vue index 00e9869..84f6497 100644 --- a/components/layout/AppHeader.vue +++ b/components/layout/AppHeader.vue @@ -3,7 +3,7 @@