Skip to content

Commit

Permalink
Merge pull request #1289 from Shadow243/imap_sieve_mode_tls
Browse files Browse the repository at this point in the history
Correct imap buttons on servers page & trigger change sieve_mode_tls checkbox on edit server
  • Loading branch information
Shadow243 authored Oct 19, 2024
2 parents 28b39ac + 452652a commit e61afbb
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions modules/core/js_modules/route_handlers.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ function applyServersPageHandlers() {
if (window.githubServersPageHandler) githubServersPageHandler();
if (window.nasaServersPageHandler) nasaServersPageHandler();
if (window.smtpServersPageHandler) smtpServersPageHandler();
if (window.imapServersPageHandler) imapServersPageHandler();
if (window.wpServersPageHandler) wpServersPageHandler();
}

Expand Down
3 changes: 3 additions & 0 deletions modules/core/site.js
Original file line number Diff line number Diff line change
Expand Up @@ -1901,6 +1901,9 @@ var fillImapData = function(details) {
if (details.sieve_config_host) {
$('#srv_setup_stepper_imap_sieve_host').val(details.sieve_config_host);
$("#srv_setup_stepper_enable_sieve").trigger("click", false);
$('#srv_setup_stepper_imap_sieve_mode_tls')
.prop('checked', details.tls)
.trigger('change');
}

if(details.tls) {
Expand Down
2 changes: 1 addition & 1 deletion modules/imap/site.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ var imap_test_action = function(event) {
);
}

var imap_setup_server_page = function() {
var imapServersPageHandler = function() {
$('.imap_delete').on('click', imap_delete_action);
$('.save_imap_connection').on('click', imap_save_action);
$('.hide_imap_connection').on('click', imap_hide);
Expand Down
2 changes: 1 addition & 1 deletion tests/selenium/pages.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def folders(self):
list_item.find_element(By.TAG_NAME, 'a').click()
self.wait_with_folder_list()
self.safari_workaround()
self.wait_for_navigation_to_complete()
self.wait(By.CLASS_NAME, 'content_title')
assert self.by_class('content_title').text == 'Folders'

def save(self):
Expand Down

0 comments on commit e61afbb

Please sign in to comment.