From 510e1c72965e9591b76ec32e8b5b0c5bd5e82a76 Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Sun, 15 Feb 2026 19:21:06 +0100 Subject: [PATCH] Fix missing import --- dashboard/eslint.config.js | 1 + dashboard/src/components/SystemBackupList.vue | 10 +++------- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/dashboard/eslint.config.js b/dashboard/eslint.config.js index e37af5db9..2d31c2531 100644 --- a/dashboard/eslint.config.js +++ b/dashboard/eslint.config.js @@ -14,6 +14,7 @@ export default [ "prefer-const": "error", "vue/no-reserved-component-names": "off", "vue/multi-word-component-names": "off", + "vue/no-undef-components": "error", } } ]; diff --git a/dashboard/src/components/SystemBackupList.vue b/dashboard/src/components/SystemBackupList.vue index e9d132a40..634e38136 100644 --- a/dashboard/src/components/SystemBackupList.vue +++ b/dashboard/src/components/SystemBackupList.vue @@ -5,7 +5,7 @@ const i18n = useI18n(); const t = i18n.t; import { ref, onMounted, onUnmounted, useTemplateRef } from 'vue'; -import { Button, FormGroup, TextInput, Checkbox, TableView, Dialog } from '@cloudron/pankow'; +import { Button, FormGroup, TextInput, Checkbox, TableView, Dialog, Spinner } from '@cloudron/pankow'; import { prettyLongDate, prettyFileSize } from '@cloudron/pankow/utils'; import { TASK_TYPES } from '../constants.js'; import ActionBar from '../components/ActionBar.vue'; @@ -170,9 +170,7 @@ function scheduleIntegrityPoll() { integrityPollTimer = setTimeout(async () => { integrityPollTimer = null; await refreshBackups(); - if (backups.value.some(b => b.integrityCheckTask?.active)) { - scheduleIntegrityPoll(); - } + if (backups.value.some(b => b.integrityCheckTask?.active)) scheduleIntegrityPoll(); }, INTEGRITY_POLL_INTERVAL_MS); } @@ -187,9 +185,7 @@ async function refreshBackups() { backups.value = result; - if (result.some(b => b.integrityCheckTask?.active)) { - scheduleIntegrityPoll(); - } + if (result.some(b => b.integrityCheckTask?.active)) scheduleIntegrityPoll(); } async function onStartIntegrityCheck(backup) {