Skip to content

Open-source eCommerce platform for C# and ASP.NET Core 10 with MongoDB. Build multi-store shops and multi-vendor marketplaces with B2B/B2C, REST API, plugins, Vue 3 and Docker.

Retrofit Edit.cshtml widget-zone selection to per-area partial files (ARCH-001 Phase 2)

KrzysztofPajak117f659c1679
diff --git a/src/Web/Grand.Web.AdminShared/Views/Product/Edit.cshtml b/src/Web/Grand.Web.AdminShared/Views/Product/Edit.cshtml
index 40a78defe..8a81ae02a 100644
--- a/src/Web/Grand.Web.AdminShared/Views/Product/Edit.cshtml
+++ b/src/Web/Grand.Web.AdminShared/Views/Product/Edit.cshtml
@@ -36,14 +36,7 @@
<span id="product-delete" class="btn red">
<i class="fa fa-trash-o"></i> @Loc[$"{Scope.ResourceKeyPrefix}.Common.Delete"]
</span>
- @if (Scope.ResourceKeyPrefix == "Vendor")
- {
- <vc:vendor-widget widget-zone="vendor_product_details_buttons" additional-data="Model"/>
- }
- else
- {
- <vc:admin-widget widget-zone="product_details_buttons" additional-data="Model"/>
- }
+ <partial name="Partials/WidgetZone.DetailsButtons" model="Model"/>
</div>
</div>
</div>