From 5c60390cc2f8ea692478423d9879153e957fc126 Mon Sep 17 00:00:00 2001 From: Geoffrey Mugnier Date: Sun, 8 Nov 2020 23:00:37 +0100 Subject: [PATCH] =?UTF-8?q?New=20-=20Permettre=20=C3=A0=20un=20producteur?= =?UTF-8?q?=20de=20ne=20pas=20renseigner=20de=20TVA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/routes/cart/DeliveryModePicker.svelte | 1 + src/routes/products/CreateProduct.svelte | 1 - src/routes/products/EditProduct.svelte | 5 ---- src/routes/products/ProductForm.svelte | 27 ++++++++++++++++---- src/routes/products/queries.js | 8 ++++++ src/routes/register/RegisterOwner.svelte | 1 + src/routes/register/owner/FormCompany.svelte | 13 +++++++++- 7 files changed, 44 insertions(+), 12 deletions(-) diff --git a/src/routes/cart/DeliveryModePicker.svelte b/src/routes/cart/DeliveryModePicker.svelte index 486f1c6e..bbea0e0f 100644 --- a/src/routes/cart/DeliveryModePicker.svelte +++ b/src/routes/cart/DeliveryModePicker.svelte @@ -74,6 +74,7 @@ storeCartItems = newCartItems; } else { $cartItems = newCartItems; + localStorage.setItem("user_cart", JSON.stringify($cartItems)); } } }; diff --git a/src/routes/products/CreateProduct.svelte b/src/routes/products/CreateProduct.svelte index 79b2856b..dbf6359a 100644 --- a/src/routes/products/CreateProduct.svelte +++ b/src/routes/products/CreateProduct.svelte @@ -2,7 +2,6 @@ import { onMount, getContext } from "svelte"; import Icon from "svelte-awesome"; import { faChevronLeft } from "@fortawesome/free-solid-svg-icons"; - import TransitionWrapper from "./../../components/TransitionWrapper.svelte"; import GetGraphQLInstance from "./../../services/SheaftGraphQL.js"; import GetRouterInstance from "./../../services/SheaftRouter.js"; diff --git a/src/routes/products/EditProduct.svelte b/src/routes/products/EditProduct.svelte index cc15b2be..7d304e29 100644 --- a/src/routes/products/EditProduct.svelte +++ b/src/routes/products/EditProduct.svelte @@ -161,11 +161,6 @@
-
-
- +
+
-
+
Pays *
-
+ {#if !isStore} +
+ +
+ {/if} +