Rework dashboard domain component to not depend on external domains list prop
This commit is contained in:
@@ -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>
|
||||
Reference in New Issue
Block a user