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.

Grid icon in Selectors - fixed #40

DanielŻuławski1dc752f5ab1a
diff --git a/src/Web/Grand.Web/Views/Catalog/_Selectors.cshtml b/src/Web/Grand.Web/Views/Catalog/_Selectors.cshtml
index 01507c5fa..7289a8661 100644
--- a/src/Web/Grand.Web/Views/Catalog/_Selectors.cshtml
+++ b/src/Web/Grand.Web/Views/Catalog/_Selectors.cshtml
@@ -54,7 +54,7 @@
<div class="sort-container order-3 d-inline-flex ml-sm-0 ml-auto change-view">
<template v-for="viewmode in catalog.Model.PagingFilteringContext.AvailableViewModes">
<a class="viewmode-icon d-flex align-items-center" v-bind:class="{ selected: viewmode.Selected, 'text-info': viewmode.Selected }" @@click="catalog.loadProducts(viewmode.Value)" :title="viewmode.Text">
- <template v-if="viewmode.Text == 'Grid'">
+ <template v-if="viewmode.Value.includes('viewmode=grid')">
<template v-if="viewmode.Selected">
<b-icon scale="2" icon="grid3x2-gap-fill"></b-icon>
</template>