mailbox backend: fix create identity form title when mailbox exists
This commit is contained in:
parent
01a1216c99
commit
0a0d284ecc
|
@ -88,6 +88,7 @@ export default class MailboxBackendController extends Controller {
|
||||||
id: user.id,
|
id: user.id,
|
||||||
userName: user.as(UserNameComponent).name,
|
userName: user.as(UserNameComponent).name,
|
||||||
name: await mainMailIdentity?.toEmail() || 'Not created.',
|
name: await mainMailIdentity?.toEmail() || 'Not created.',
|
||||||
|
exists: !!mainMailIdentity,
|
||||||
},
|
},
|
||||||
domains: mailDomains.map(d => ({
|
domains: mailDomains.map(d => ({
|
||||||
display: d.name,
|
display: d.name,
|
||||||
|
|
|
@ -45,7 +45,7 @@
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
<form action="{{ route('backend-create-mail-identity', mailbox.id) }}" method="POST" class="sub-panel">
|
<form action="{{ route('backend-create-mail-identity', mailbox.id) }}" method="POST" class="sub-panel">
|
||||||
<h3>{% if mailboxIdentity == null %}Create a mailbox{% else %}Create a new mail identity{% endif %}</h3>
|
<h3>{% if not mailbox.exists %}Create a mailbox{% else %}Create a new mail identity{% endif %}</h3>
|
||||||
|
|
||||||
<div class="inline-fields">
|
<div class="inline-fields">
|
||||||
{{ macros.field(_locals, 'text', 'name', user.name, 'Email name', null, 'required') }}
|
{{ macros.field(_locals, 'text', 'name', user.name, 'Email name', null, 'required') }}
|
||||||
|
|
Loading…
Reference in New Issue