From bbb14e698d9f47a6063708404131dc228c6737c4 Mon Sep 17 00:00:00 2001 From: rakesh Date: Fri, 16 Jun 2023 14:04:24 +0530 Subject: [PATCH] fixes --- .../RetailerSearchProducts.vue | 32 +++++++++++-------- src/routes/retailer/cart_products.scss | 10 +++++- src/routes/retailer/cart_products.vue | 23 +++++++------ 3 files changed, 38 insertions(+), 27 deletions(-) diff --git a/src/components/retailer/retailer-search/RetailerSearchProducts.vue b/src/components/retailer/retailer-search/RetailerSearchProducts.vue index dc328c9..42f9411 100644 --- a/src/components/retailer/retailer-search/RetailerSearchProducts.vue +++ b/src/components/retailer/retailer-search/RetailerSearchProducts.vue @@ -80,13 +80,14 @@ { - this.snackbar = { + }); + this.snackbarVal = { message: "Product Added Successfully", color: "success", show: true, timeout: 2000, }; - this.$store.dispatch("userCartProduct/cartProductList"); - this.$emit("actionClose", this.snackbar); - }) - .catch((error) => { - console.log("error", error); - this.snackbar = { + this.$store.dispatch("userCartProduct/cartProductList"); + this.$emit("action-close", this.snackbarVal); + } + catch(error) + { + console.log("error", error); + this.snackbarVal = { message: error.message, color: "error", show: true, timeout: 2000, }; - this.$emit("actionClose", this.snackbar); - }); + this.$emit("action-close", this.snackbarVal); + + } + } } else { this.errorMessage = "Please Select Quantity"; diff --git a/src/routes/retailer/cart_products.scss b/src/routes/retailer/cart_products.scss index 52740a6..fc1cee1 100644 --- a/src/routes/retailer/cart_products.scss +++ b/src/routes/retailer/cart_products.scss @@ -8,4 +8,12 @@ .alert-box-outline{ background-color: rgb(248, 220, 220); color: red; -} \ No newline at end of file +} +.v-menu-position-relative +{ + position:relative; +} + .v-menu-top.v-overlay__content{ + top:0!important; + + } \ No newline at end of file diff --git a/src/routes/retailer/cart_products.vue b/src/routes/retailer/cart_products.vue index afc1768..bf26b23 100644 --- a/src/routes/retailer/cart_products.vue +++ b/src/routes/retailer/cart_products.vue @@ -20,7 +20,6 @@ > - - - - - - - - -
Please type Item, Name, or Keyword to search
-
-
+ + + + + + + +
Please type Item, Name, or Keyword to search
+
+
@@ -360,4 +359,4 @@ export default { }, }; -