@@ -229,7 +229,6 @@ var Hm_Ajax_Request = function() { return {
229229 }
230230 if ( Hm_Ajax . err_condition ) {
231231 Hm_Ajax . err_condition = false ;
232- Hm_Notices . hide ( true ) ;
233232 }
234233 if ( res . router_user_msgs && ! $ . isEmptyObject ( res . router_user_msgs ) ) {
235234 Object . values ( res . router_user_msgs ) . forEach ( ( msg ) => {
@@ -448,10 +447,6 @@ class Hm_Alert {
448447 } , dismissTime * 1000 ) ;
449448 }
450449
451- clearAll ( ) {
452- this . container . innerHTML = '' ;
453- }
454-
455450 #getIcon( type ) {
456451 const icons = {
457452 success : 'check-circle-fill' ,
@@ -475,13 +470,10 @@ var Hm_Notices = {
475470 * @param {* } type : The type of message to display (primary, secondary, success, danger, warning, info)
476471 */
477472 show : function ( msg , type = 'success' , dismissible = true , dismissTime = 10 ) {
473+ msg = hm_trans ( msg ) ;
478474 this . hm_alert . createAlert ( msg , type , dismissible , dismissTime ) ;
479475 } ,
480476
481- hide : function ( ) {
482- this . hm_alert . clearAll ( ) ;
483- } ,
484-
485477 /**
486478 * Shows pending messages on page load
487479 */
@@ -1756,10 +1748,6 @@ var decrease_servers = function(section) {
17561748 }
17571749} ;
17581750
1759- var err_msg = function ( msg ) {
1760- return "ERR" + hm_trans ( msg ) ;
1761- } ;
1762-
17631751var hm_spinner = function ( type = 'border' , size = '' ) {
17641752 return `<div class="d-flex justify-content-center spinner">
17651753 <div class="spinner-${ type } text-dark${ size ? ` spinner-${ type } -${ size } ` : '' } " role="status">
@@ -1810,7 +1798,6 @@ var fillJmapData = function(details) {
18101798var imap_smtp_edit_action = function ( event ) {
18111799 resetQuickSetupForm ( ) ;
18121800 event . preventDefault ( ) ;
1813- Hm_Notices . hide ( true ) ;
18141801 var details = $ ( this ) . data ( 'server-details' ) ;
18151802
18161803 $ ( '.imap-jmap-smtp-btn' ) . trigger ( 'click' ) ;
0 commit comments