Ensure we refetch features if potentially plan changes via claiming the cloudron

This commit is contained in:
Johannes Zellner
2025-09-30 15:20:11 +02:00
parent e44e9f4cf0
commit 0893bf4aa0
2 changed files with 14 additions and 5 deletions

View File

@@ -4,7 +4,7 @@ import { useI18n } from 'vue-i18n';
const i18n = useI18n();
const t = i18n.t;
import { ref, onMounted, onUnmounted, useTemplateRef, computed } from 'vue';
import { ref, onMounted, onUnmounted, useTemplateRef, computed, inject } from 'vue';
import { Button, ProgressBar, InputDialog, ClipboardAction } from '@cloudron/pankow';
import { prettyLongDate } from '@cloudron/pankow/utils';
import Section from '../components/Section.vue';
@@ -26,6 +26,8 @@ const planName = ref('');
const cancelAt = ref(0);
const status = ref('');
const refreshFeatures = inject('refreshFeatures');
let pollTimeoutId = 0;
async function refresh() {
@@ -44,6 +46,8 @@ async function refresh() {
planName.value = result.plan.name;
cancelAt.value = result.cancel_at;
status.value = result.status;
await refreshFeatures();
}
const appstoreCloudronLink = computed(() => {