From 8e0ee671085222f7d8fc867a3f3710950387e7ca Mon Sep 17 00:00:00 2001 From: FreddleSpl0it Date: Tue, 27 Sep 2022 12:32:14 +0200 Subject: [PATCH] add sieve access toggle to mass-actions-mailbox --- data/web/js/site/mailbox.js | 18 +++++++++++------- data/web/templates/mailbox/tab-mailboxes.twig | 6 ++++++ 2 files changed, 17 insertions(+), 7 deletions(-) diff --git a/data/web/js/site/mailbox.js b/data/web/js/site/mailbox.js index 8f541ffa4..c74494aaa 100644 --- a/data/web/js/site/mailbox.js +++ b/data/web/js/site/mailbox.js @@ -358,6 +358,7 @@ jQuery(function($){ item.pop3_access = ''; item.imap_access = ''; item.smtp_access = ''; + item.sieve_access = ''; if (item.attributes.quarantine_notification === 'never') { item.quarantine_notification = lang.never; } else if (item.attributes.quarantine_notification === 'hourly') { @@ -375,15 +376,13 @@ jQuery(function($){ item.quarantine_category = lang.q_all; } if (acl_data.login_as === 1) { - var btnSize = 'btn-xs-third'; - if (ALLOW_ADMIN_EMAIL_LOGIN) btnSize = 'btn-xs-quart'; - item.action = '
' + - ' ' + lang.edit + '' + - ' ' + lang.remove + '' + - ''; + item.action = '
' + + ' ' + lang.edit + '' + + ' ' + lang.remove + '' + + ''; if (ALLOW_ADMIN_EMAIL_LOGIN) { - item.action += ''; + item.action += ''; } item.action += '
'; } @@ -504,6 +503,11 @@ jQuery(function($){ data: 'pop3_access', defaultContent: '' }, + { + title: 'SIEVE', + data: 'sieve_access', + defaultContent: '' + }, { title: lang.quarantine_notification, data: 'quarantine_notification', diff --git a/data/web/templates/mailbox/tab-mailboxes.twig b/data/web/templates/mailbox/tab-mailboxes.twig index 6ce65beb4..7f5e21a3d 100644 --- a/data/web/templates/mailbox/tab-mailboxes.twig +++ b/data/web/templates/mailbox/tab-mailboxes.twig @@ -54,6 +54,9 @@
  • {{ lang.mailbox.activate }}
  • {{ lang.mailbox.deactivate }}
  • + +
  • {{ lang.mailbox.activate }}
  • +
  • {{ lang.mailbox.deactivate }}
  • {{ lang.mailbox.add_mailbox }}
    @@ -95,6 +98,9 @@
  • {{ lang.mailbox.activate }}
  • {{ lang.mailbox.deactivate }}
  • + +
  • {{ lang.mailbox.activate }}
  • +
  • {{ lang.mailbox.deactivate }}