From c6a56e0748c52f6cad2cc6ec45ab5f30bcf01c52 Mon Sep 17 00:00:00 2001 From: FreddleSpl0it Date: Fri, 31 Mar 2023 14:56:31 +0200 Subject: [PATCH] [Web] add IAM delete button & fix add mbox modal --- data/web/js/site/mailbox.js | 2 +- data/web/templates/admin/tab-config-identity-provider.twig | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/data/web/js/site/mailbox.js b/data/web/js/site/mailbox.js index 6fbcc3e3f..e562ab8cf 100644 --- a/data/web/js/site/mailbox.js +++ b/data/web/js/site/mailbox.js @@ -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 { diff --git a/data/web/templates/admin/tab-config-identity-provider.twig b/data/web/templates/admin/tab-config-identity-provider.twig index 02d5ca14c..13bbc7553 100644 --- a/data/web/templates/admin/tab-config-identity-provider.twig +++ b/data/web/templates/admin/tab-config-identity-provider.twig @@ -87,8 +87,9 @@
- +
+