@paris-ias/list 1.0.63 → 1.0.65

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/module.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@paris-ias/list",
3
3
  "configKey": "list",
4
- "version": "1.0.63",
4
+ "version": "1.0.65",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.0",
7
7
  "unbuild": "3.5.0"
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <v-tooltip v-if="$stores[type]?.filtersCount > 0" location="top">
2
+ <v-tooltip location="top">
3
3
  <template #activator="{ props: tooltip }">
4
4
  <v-btn
5
5
  x-large
@@ -7,7 +7,10 @@
7
7
  @open="filtersOpen = $event"
8
8
  />
9
9
  <v-spacer />
10
- <ListAtomsResetButton :type="type" />
10
+ <ListAtomsResetButton
11
+ v-if="$stores[type]?.filtersCount && $stores[type]?.filtersCount > 0"
12
+ :type="type"
13
+ />
11
14
  <ListAtomsViewMenu :type="type" />
12
15
  <ListAtomsSortMenu :type="type" />
13
16
  </div>
@@ -122,6 +122,8 @@ export const useRootStore = defineStore("rootStore", {
122
122
  this.total = 0;
123
123
  this.skip = 0;
124
124
  this.numberOfPages = 0;
125
+ this.setFiltersCount(type);
126
+ this.updateRouteQuery(type);
125
127
  },
126
128
  updateSort({ value, type }) {
127
129
  const { $stores } = useNuxtApp();
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "license": "AGPL-3.0-only",
3
3
  "main": "./dist/module.mjs",
4
- "version": "1.0.63",
4
+ "version": "1.0.65",
5
5
  "name": "@paris-ias/list",
6
6
  "repository": {
7
7
  "url": "git+https://github.com/IEA-Paris/list.git",