Ensure we refetch features if potentially plan changes via claiming the cloudron
This commit is contained in:
@@ -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(() => {
|
||||
|
||||
Reference in New Issue
Block a user