mirror of
https://github.com/mjl-/mox.git
synced 2025-07-12 21:34:38 +03:00
don't show default domain on admin account page
it is a remnant from the time domains didn't have to be specific in "Destination" addresses. we still use it for as default selection for adding a new address to an account. but there's not much point in showing it so prominently. that raises more questions than it is helpful. for issue #142 by tabatinga0xffff
This commit is contained in:
@ -673,11 +673,6 @@ const account = async (name: string) => {
|
||||
crumblink('Accounts', '#accounts'),
|
||||
name,
|
||||
),
|
||||
dom.div(
|
||||
'Default domain: ',
|
||||
config.Domain ? dom.a(config.Domain, attr.href('#domains/'+config.Domain)) : '(none)',
|
||||
),
|
||||
dom.br(),
|
||||
dom.h2('Addresses'),
|
||||
dom.table(
|
||||
dom.thead(
|
||||
@ -712,11 +707,7 @@ const account = async (name: string) => {
|
||||
const target = e.target! as HTMLButtonElement
|
||||
target.disabled = true
|
||||
try {
|
||||
let addr = k
|
||||
if (!addr.includes('@')) {
|
||||
addr += '@' + config.Domain
|
||||
}
|
||||
await client.AddressRemove(addr)
|
||||
await client.AddressRemove(k)
|
||||
} catch (err) {
|
||||
console.log({err})
|
||||
window.alert('Error: ' + errmsg(err))
|
||||
|
Reference in New Issue
Block a user