From b6f60d56996dbe19a852d4eca395f79d78b906b8 Mon Sep 17 00:00:00 2001 From: Remko Date: Thu, 8 Aug 2024 11:17:36 +0200 Subject: [PATCH 1/3] fixed refresh bug --- src/views/Views.vue | 2 +- src/views/catalogi/CatalogiList.vue | 6 +++++- src/views/directory/DirectoryList.vue | 6 +++++- src/views/metaData/MetaDataList.vue | 6 +++++- src/views/organisations/OrganisationList.vue | 6 +++++- src/views/publications/PublicationList.vue | 6 +++++- src/views/themes/ThemeList.vue | 6 +++++- 7 files changed, 31 insertions(+), 7 deletions(-) diff --git a/src/views/Views.vue b/src/views/Views.vue index 2a720c4f..c91a95af 100644 --- a/src/views/Views.vue +++ b/src/views/Views.vue @@ -10,7 +10,7 @@ import { navigationStore, searchStore } from '../store/store.js' - + diff --git a/src/views/catalogi/CatalogiList.vue b/src/views/catalogi/CatalogiList.vue index 41cf4074..49031a33 100644 --- a/src/views/catalogi/CatalogiList.vue +++ b/src/views/catalogi/CatalogiList.vue @@ -23,7 +23,7 @@ import { catalogiStore, navigationStore } from '../../store/store.js' Help - + @@ -146,6 +146,10 @@ export default { this.fetchData() }, methods: { + refresh(e) { + e.preventDefault() + this.fetchData() + }, fetchData(search = null) { this.loading = true catalogiStore.refreshCatalogiList(search) diff --git a/src/views/directory/DirectoryList.vue b/src/views/directory/DirectoryList.vue index 8716f0eb..79ed239c 100644 --- a/src/views/directory/DirectoryList.vue +++ b/src/views/directory/DirectoryList.vue @@ -22,7 +22,7 @@ import { navigationStore, directoryStore } from '../../store/store.js' Help - + @@ -143,6 +143,10 @@ export default { this.fetchData() }, methods: { + refresh(e) { + e.preventDefault() + this.fetchData() + }, fetchData(search = null) { this.loading = true directoryStore.refreshListingList(search) diff --git a/src/views/metaData/MetaDataList.vue b/src/views/metaData/MetaDataList.vue index a435cb49..ad9e6bb2 100644 --- a/src/views/metaData/MetaDataList.vue +++ b/src/views/metaData/MetaDataList.vue @@ -23,7 +23,7 @@ import { navigationStore, metadataStore } from '../../store/store.js' Help - + @@ -146,6 +146,10 @@ export default { this.fetchData() }, methods: { + refresh(e) { + e.preventDefault() + this.fetchData() + }, fetchData(search = null) { this.loading = true metadataStore.refreshMetaDataList(search) diff --git a/src/views/organisations/OrganisationList.vue b/src/views/organisations/OrganisationList.vue index f4e457cc..fc5af760 100644 --- a/src/views/organisations/OrganisationList.vue +++ b/src/views/organisations/OrganisationList.vue @@ -23,7 +23,7 @@ import { navigationStore, organisationStore } from '../../store/store.js' Help - + @@ -149,6 +149,10 @@ export default { this.fetchData() }, methods: { + refresh(e) { + e.preventDefault() + this.fetchData() + }, fetchData(search = null) { this.loading = true organisationStore.refreshOrganisationList(search) diff --git a/src/views/publications/PublicationList.vue b/src/views/publications/PublicationList.vue index 9394a73a..87470256 100644 --- a/src/views/publications/PublicationList.vue +++ b/src/views/publications/PublicationList.vue @@ -49,7 +49,7 @@ import { navigationStore, publicationStore } from '../../store/store.js' Help - + @@ -227,6 +227,10 @@ export default { this.fetchData() }, methods: { + refresh(e) { + e.preventDefault() + this.fetchData() + }, fetchData(search = null) { this.loading = true publicationStore.refreshPublicationList(search) diff --git a/src/views/themes/ThemeList.vue b/src/views/themes/ThemeList.vue index 07903d57..c49c0a8f 100644 --- a/src/views/themes/ThemeList.vue +++ b/src/views/themes/ThemeList.vue @@ -23,7 +23,7 @@ import { navigationStore, themeStore } from '../../store/store.js' Help - + @@ -149,6 +149,10 @@ export default { this.fetchData() }, methods: { + refresh(e) { + e.preventDefault() + this.fetchData() + }, fetchData(search = null) { this.loading = true themeStore.refreshThemeList(search) From 0c4bae25290334cc5a290b0403c42808305ea65a Mon Sep 17 00:00:00 2001 From: Remko Date: Thu, 8 Aug 2024 11:27:35 +0200 Subject: [PATCH 2/3] Fixed lint errors --- src/views/directory/DirectoryList.vue | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/src/views/directory/DirectoryList.vue b/src/views/directory/DirectoryList.vue index 79ed239c..017aad2b 100644 --- a/src/views/directory/DirectoryList.vue +++ b/src/views/directory/DirectoryList.vue @@ -86,17 +86,15 @@ import { navigationStore, directoryStore } from '../../store/store.js'