mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-10-23 06:38:40 +02:00
Frontend fixes after beta4 review
This commit is contained in:
@@ -246,11 +246,15 @@ function generateNewKey() {
|
||||
)
|
||||
}
|
||||
|
||||
watch(domain, (newDomain) => {
|
||||
if (props.modelValue) {
|
||||
domainsApi.getDomainDNSDetail(newDomain.pk).then((resp) => {
|
||||
detail.value = resp.data
|
||||
})
|
||||
}
|
||||
})
|
||||
watch(
|
||||
domain,
|
||||
(newDomain) => {
|
||||
if (newDomain) {
|
||||
domainsApi.getDomainDNSDetail(newDomain.pk).then((resp) => {
|
||||
detail.value = resp.data
|
||||
})
|
||||
}
|
||||
},
|
||||
{ immediate: true }
|
||||
)
|
||||
</script>
|
||||
|
||||
@@ -316,9 +316,7 @@ function getDomainMenuItems(domain) {
|
||||
}
|
||||
|
||||
onMounted(() => {
|
||||
if (Object.values(domains.value).length < 1) {
|
||||
reloadDomains()
|
||||
}
|
||||
reloadDomains()
|
||||
})
|
||||
</script>
|
||||
|
||||
|
||||
@@ -223,7 +223,6 @@ const editedAccount = ref({ pk: route.params.id })
|
||||
const usernameIsEmail = computed(() => {
|
||||
return (
|
||||
editedAccount.value.username &&
|
||||
editedAccount.value.role !== 'SuperAdmins' &&
|
||||
editedAccount.value.username.indexOf('@') !== -1
|
||||
)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user