Rework dashboard domain component to not depend on external domains list prop

This commit is contained in:
Johannes Zellner
2025-10-09 15:18:00 +02:00
parent 3547be3401
commit 63b51d2fca
2 changed files with 26 additions and 6 deletions
+4 -1
View File
@@ -24,6 +24,7 @@ const search = ref('');
const dashboardDomain = ref('');
const domainDialog = useTemplateRef('domainDialog');
const wellKnownDialog = useTemplateRef('wellKnownDialog');
const dashboardDomainComponent = useTemplateRef('dashboardDomainComponent');
const features = inject('features');
const subscriptionRequiredDialog = inject('subscriptionRequiredDialog');
@@ -112,6 +113,8 @@ async function refreshDomains() {
if (error) return console.error(error);
domains.value = result;
dashboardDomainComponent.value.updateDomains(result);
}
onMounted(async () => {
@@ -161,6 +164,6 @@ onMounted(async () => {
<Certificates />
<SyncDns />
<DashboardDomain :domains="domains"/>
<DashboardDomain ref="dashboardDomainComponent"/>
</div>
</template>