From: Vincent Vanwaelscappel Date: Tue, 17 Mar 2020 19:02:25 +0000 (+0100) Subject: wip #3505 @1 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=8dfe4d71fa89a9d51c9e6fe6a97d465c23ccc0e4;p=pmi.git wip #3505 @1 --- diff --git a/resources/js/components/CartAdd.vue b/resources/js/components/CartAdd.vue index f0f4f2d..140e893 100644 --- a/resources/js/components/CartAdd.vue +++ b/resources/js/components/CartAdd.vue @@ -31,6 +31,7 @@ methods: { addToCart() { + console.warn(':)'); eventBus.$emit('add-item', { id: this.productId, quantity: 1, diff --git a/resources/js/components/ProductsFilters.vue b/resources/js/components/ProductsFilters.vue index 0675f63..334d42a 100644 --- a/resources/js/components/ProductsFilters.vue +++ b/resources/js/components/ProductsFilters.vue @@ -125,11 +125,14 @@ import 'ie-array-find-polyfill' import 'es7-object-polyfill' import VueSlider from 'vue-slider-component' // See vue-slider.styl for CSS + import CartAdd from "./CartAdd"; + export default { components: { - VueSlider + VueSlider, + CartAdd }, props: { diff --git a/resources/styles/components/products.styl b/resources/styles/components/products.styl index ae17876..f2d8184 100644 --- a/resources/styles/components/products.styl +++ b/resources/styles/components/products.styl @@ -16,6 +16,11 @@ +below(960px) grid-template-columns: repeat(auto-fill, minmax(225px, 1fr)) + .btn + width 100%; + padding-top 0.7rem + padding-bottom 0.7rem + .links white-space nowrap; font-size 14px diff --git a/resources/views/partials/product-link.blade.php b/resources/views/partials/product-link.blade.php index 9eb7eaa..cf17670 100644 --- a/resources/views/partials/product-link.blade.php +++ b/resources/views/partials/product-link.blade.php @@ -15,12 +15,14 @@

{{ $product->get('reference') }}

- - {{ __('Ajouter à ma sélection') }} - - + @if(config('features.quote')) + + {{ __('Ajouter à ma sélection') }} + + + @endif
- - @include('partials.product-schema') -