@paris-ias/list 1.0.87 → 1.0.89

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.87",
4
+ "version": "1.0.89",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.0",
7
7
  "unbuild": "3.5.0"
@@ -9,12 +9,7 @@
9
9
  icon
10
10
  class="ml-auto"
11
11
  v-bind="tooltip"
12
- @click="
13
- () => {
14
- rootStore.resetState(type);
15
- rootStore.update(type);
16
- }
17
- "
12
+ @click="rootStore.resetState(type)"
18
13
  >
19
14
  <v-icon>mdi-restore</v-icon>
20
15
  </v-btn>
@@ -24,9 +19,7 @@
24
19
  </template>
25
20
 
26
21
  <script setup>
27
- import { useNuxtApp, onMounted, computed } from "#imports";
28
22
  import { useRootStore } from "../../../stores/root";
29
- const { $stores } = useNuxtApp();
30
23
  const rootStore = useRootStore();
31
24
  const props = defineProps({
32
25
  type: {
@@ -18,7 +18,7 @@
18
18
  <v-btn
19
19
  icon="mdi-open-in-new"
20
20
  variant="text"
21
- :to="localePath(getPath(item.slug || item.id))"
21
+ :to="localePath(getPath(item.slug[locale]))"
22
22
  target="_blank"
23
23
  />
24
24
  </template>
@@ -26,7 +26,8 @@
26
26
  </template>
27
27
 
28
28
  <script setup>
29
- import { useLocalePath } from "#imports";
29
+ import { useLocalePath, useI18n } from "#imports";
30
+ const { locale } = useI18n();
30
31
  const localePath = useLocalePath();
31
32
  const props = defineProps({
32
33
  item: {
@@ -29,7 +29,7 @@ export const useRootStore = defineStore("rootStore", {
29
29
  setLoading(value, type = "") {
30
30
  const { $stores } = useNuxtApp();
31
31
  this.loading = value;
32
- if (type.length && $stores[type]) {
32
+ if (type.length && type !== "all" && $stores[type]) {
33
33
  $stores[type].loading = value;
34
34
  }
35
35
  },
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.87",
4
+ "version": "1.0.89",
5
5
  "name": "@paris-ias/list",
6
6
  "repository": {
7
7
  "url": "git+https://github.com/IEA-Paris/list.git",