1
0
mirror of https://github.com/mailcow/mailcow-dockerized.git synced 2025-12-22 14:21:31 +00:00

[Web][DockerApi] Add the ability to rename the local part of a mailbox

This commit is contained in:
FreddleSpl0it
2024-08-21 10:10:34 +02:00
parent f9a7712025
commit 10dfd0a443
11 changed files with 356 additions and 107 deletions

View File

@@ -58,6 +58,11 @@ $(document).ready(function() {
$('input[name=multiple_bookings]').val($("#multiple_bookings_custom").val());
});
$("#show_mailbox_rename_form").click(function() {
$("#rename_warning").hide();
$("#rename_form").removeClass("d-none");
});
// load tags
if ($('#tags').length){
var tagsEl = $('#tags').parent().find('.tag-values')[0];

View File

@@ -2354,7 +2354,7 @@ jQuery(function($){
else
$(tab).find(".table_collapse_option").hide();
}
function filterByDomain(json, column, table){
var tableId = $(table.table().container()).attr('id');
// Create the `select` element
@@ -2377,12 +2377,12 @@ jQuery(function($){
}
});
});
// get unique domain list
domains = domains.filter(function(value, index, array) {
return array.indexOf(value) === index;
});
// add domains to select
domains.forEach(function(domain) {
select.append($('<option>' + domain + '</option>'));