From 226153f744c18aa9b75fbcfe5a066d516f707e40 Mon Sep 17 00:00:00 2001 From: Ludovic CANDELLIER Date: Fri, 16 Apr 2021 00:04:00 +0200 Subject: [PATCH] Fixes on article preview --- .../Shop/Admin/Articles/partials/characteristics.blade.php | 2 +- .../views/Shop/Admin/Articles/partials/product/images.blade.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/views/Shop/Admin/Articles/partials/characteristics.blade.php b/resources/views/Shop/Admin/Articles/partials/characteristics.blade.php index 3d5a528a..51ee4df2 100644 --- a/resources/views/Shop/Admin/Articles/partials/characteristics.blade.php +++ b/resources/views/Shop/Admin/Articles/partials/characteristics.blade.php @@ -52,7 +52,7 @@
- @include('Shop.Admin.Articles.partials.product.images', ['name' => 'product_images']) + @include('Shop.Admin.Articles.partials.product.images') @include('components.uploader.widget', ['load_url' => route('Shop.Admin.Articles.getImages', ['id' => $article['id'] ?? false]), 'delete_url' => route('Shop.Admin.Articles.deleteImage'), 'title' => 'Photos', 'name' => 'images' ])
diff --git a/resources/views/Shop/Admin/Articles/partials/product/images.blade.php b/resources/views/Shop/Admin/Articles/partials/product/images.blade.php index 70cf15d6..3ed5bf1a 100644 --- a/resources/views/Shop/Admin/Articles/partials/product/images.blade.php +++ b/resources/views/Shop/Admin/Articles/partials/product/images.blade.php @@ -1 +1 @@ -@include('components.uploader.widget', ['load_url' => route('Botanic.Admin.Varieties.getImages', ['id' => $article['product_id'] ?? false]), 'title' => 'Photos produits', 'prefix' => 'product_', 'can_edit' => false ]) +@include('components.uploader.widget', ['load_url' => route('Botanic.Admin.Varieties.getImages', ['id' => $article['product_id'] ?? false, 'can_edit' => 0]), 'name' => 'product_images', 'title' => 'Photos produits', 'prefix' => 'product_', 'can_edit' => false, 'collapsed' => true ])