Fix appstore account polling
This commit is contained in:
@@ -5,7 +5,7 @@ const i18n = useI18n();
|
||||
const t = i18n.t;
|
||||
|
||||
import { ref, onMounted, onUnmounted, useTemplateRef } from 'vue';
|
||||
import { Button, Spinner, InputDialog } from '@cloudron/pankow';
|
||||
import { Button, ProgressBar, InputDialog } from '@cloudron/pankow';
|
||||
import { prettyLongDate } from '@cloudron/pankow/utils';
|
||||
import Section from '../components/Section.vue';
|
||||
import SettingsItem from '../components/SettingsItem.vue';
|
||||
@@ -64,11 +64,6 @@ async function onAskResetCloudron() {
|
||||
await onResetCloudron();
|
||||
}
|
||||
|
||||
async function pollSubscription() {
|
||||
await refresh();
|
||||
pollTimeoutId = setInterval(refresh, 3000);
|
||||
}
|
||||
|
||||
async function onResetCloudron() {
|
||||
busy.value = true;
|
||||
|
||||
@@ -89,7 +84,7 @@ onMounted(async () => {
|
||||
await refresh();
|
||||
busy.value = false;
|
||||
|
||||
await pollSubscription();
|
||||
pollTimeoutId = setInterval(refresh, 3000);
|
||||
});
|
||||
|
||||
onUnmounted(() => {
|
||||
@@ -156,7 +151,7 @@ onUnmounted(() => {
|
||||
</SettingsItem>
|
||||
</div>
|
||||
<div v-else>
|
||||
<Spinner class="pankow-spinner-large"/>
|
||||
<ProgressBar mode="indeterminate" slim :show-label="false"/>
|
||||
</div>
|
||||
</Section>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user