diff --git a/.htaccess b/.htaccess index 24e78f07..38165cc9 100644 --- a/.htaccess +++ b/.htaccess @@ -1,10 +1,5 @@ -Options +FollowSymLinks +ExecCGI -Options -MultiViews -RewriteEngine on - -RewriteRule sitemap.xml sitemap.xml [L] -RewriteRule robots.txt robots.txt [L] -RewriteRule manifest.json manifest.json [L] - -RewriteCond %{REQUEST_URI} !(\.svg|\.png|\.jpg|\.gif|\.jpeg|\.bmp|\.ico|\.css|\.js|\.txt|\.mp4|\.map|\.woff2|\.woff|\.ttf|\.eot)$ -RewriteRule (.*) index.html [QSA] +RewriteEngine On +RewriteBase / +RewriteCond %{REQUEST_FILENAME} !-f +RewriteCond %{REQUEST_FILENAME} !-d +RewriteRule (.*) /index.html [QSA,L] diff --git a/package.json b/package.json index b692e324..ad610e7d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "store-admin", - "version": "6.0.2", + "version": "6.0.3", "private": true, "description": "Admin panel for Heseya Store API", "author": "Heseya", diff --git a/src/components/PaginatedList.vue b/src/components/PaginatedList.vue index 9bf27dc8..feffb6d0 100644 --- a/src/components/PaginatedList.vue +++ b/src/components/PaginatedList.vue @@ -206,10 +206,10 @@ export default defineComponent({ const queryFilters = formatFilters(this.filters) await this.$accessor[this.storeKey].fetch({ - page: this.page, - limit: this.itemsPerPage, ...queryFilters, ...this.params, + page: this.page, + limit: this.itemsPerPage, }) this.isLoading = false diff --git a/src/components/modules/attributes/configurator/Configurator.vue b/src/components/modules/attributes/configurator/Configurator.vue index 3c8baa0c..96061f34 100644 --- a/src/components/modules/attributes/configurator/Configurator.vue +++ b/src/components/modules/attributes/configurator/Configurator.vue @@ -141,7 +141,13 @@ export default defineComponent({ }, deleteAttribute(id: UUID) { - this.attributes = this.attributes.filter((a) => a.id !== id) + const removedAttribute = this.attributes.find((a) => a.id === id) + // When Global attribute is removed, value is removed, not the attribute itself + if (removedAttribute?.global) { + removedAttribute.selected_options = [undefined as any] + } else { + this.attributes = this.attributes.filter((a) => a.id !== id) + } }, }, }) diff --git a/src/components/modules/attributes/configurator/DateAndNumberTypeInput.vue b/src/components/modules/attributes/configurator/DateAndNumberTypeInput.vue index 5baaf699..f61fed60 100644 --- a/src/components/modules/attributes/configurator/DateAndNumberTypeInput.vue +++ b/src/components/modules/attributes/configurator/DateAndNumberTypeInput.vue @@ -5,24 +5,25 @@ v-model="selectedOption[0].value_date" class="date-input__input" type="date" - name="value_date" + :name="`${attribute.id}_value_date`" />