From a3d9ee76aa9d2f8c22a83a782a2652d0eba249ac Mon Sep 17 00:00:00 2001 From: Jannik Stehle Date: Wed, 13 Dec 2023 12:30:43 +0100 Subject: [PATCH] fix: gdpr export polling Fixes periodically checking for new gdpr exports which didn't work reliably due to never resetting the polling interval. --- changelog/unreleased/bugfix-gdpr-export-polling | 6 ++++++ packages/web-runtime/src/components/Account/GdprExport.vue | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 changelog/unreleased/bugfix-gdpr-export-polling diff --git a/changelog/unreleased/bugfix-gdpr-export-polling b/changelog/unreleased/bugfix-gdpr-export-polling new file mode 100644 index 00000000000..4504ca30131 --- /dev/null +++ b/changelog/unreleased/bugfix-gdpr-export-polling @@ -0,0 +1,6 @@ +Bugfix: GDPR export polling + +Periodically checking for a processed GDPR export in the account menu has been fixed. + +https://github.com/owncloud/web/pull/10158 +https://github.com/owncloud/web/issues/8862 diff --git a/packages/web-runtime/src/components/Account/GdprExport.vue b/packages/web-runtime/src/components/Account/GdprExport.vue index ccee7b29b67..71b7b3c5044 100644 --- a/packages/web-runtime/src/components/Account/GdprExport.vue +++ b/packages/web-runtime/src/components/Account/GdprExport.vue @@ -52,7 +52,7 @@ export default defineComponent({ const { downloadFile } = useDownloadFile() const loading = ref(true) - const checkInterval = ref() + const checkInterval = ref>() const exportFile = ref() const exportInProgress = ref(false) @@ -80,6 +80,7 @@ export default defineComponent({ exportInProgress.value = false if (unref(checkInterval)) { clearInterval(unref(checkInterval)) + checkInterval.value = undefined } } catch (e) { if (e.statusCode !== 404) {