[Web] add IAM delete button & fix add mbox modal

This commit is contained in:
FreddleSpl0it
2023-03-31 14:56:31 +02:00
parent 960f232a7d
commit 8e90c4b2be
2 changed files with 3 additions and 2 deletions

View File

@@ -282,7 +282,7 @@ $(document).ready(function() {
$("#addInputQuota").val(template.quota / 1048576);
$('#mbox_add_iam').selectpicker('val', template.authsource);
// toggle password fields
if (template.authsource === 'mailcow'){
if (!template.authsource || template.authsource === 'mailcow'){
$('#mbox_add_pwds').removeClass('d-none');
$('#mbox_add_pwds').find('.form-control').prop('required', true);
} else {