Fix typo that allowed primary domain to be deleted

This commit is contained in:
Girish Ramakrishnan
2025-11-07 09:44:06 +01:00
parent 044fb72da9
commit 52b46e2b3e

View File

@@ -95,7 +95,7 @@ function onActionMenu(domain, event) {
}, {
icon: 'fa-solid fa-trash-alt',
label: t('main.action.remove'),
disabled: domain.domain.value === dashboardDomain.value,
disabled: domain.domain === dashboardDomain.value,
action: onRemove.bind(null, domain),
}];
@@ -150,7 +150,7 @@ onMounted(async () => {
<Button @click="onAdd()">{{ $t('main.action.add') }}</Button>
</template>
<div>{{ $t('domains.domainDialog.addDescription') }}</div>
<div>{{ $t('domains.description') }}</div>
<br/>
@@ -170,4 +170,4 @@ onMounted(async () => {
<SyncDns />
<DashboardDomain ref="dashboardDomainComponent"/>
</div>
</template>
</template>