Fix typo that allowed primary domain to be deleted
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user