This repository was archived by the owner on Nov 4, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed
snappymail/v/0.0.0/app/templates/Views/Admin Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -148,6 +148,8 @@ export class DomainPopupView extends AbstractViewPopup {
148148 imapHostFocus : false ,
149149 sieveHostFocus : false ,
150150 smtpHostFocus : false ,
151+
152+ detectingConfig : false
151153 } ) ;
152154 this . imapDisabled_capabilities = ko . observableArray ( ) ;
153155 this . imapCapabilities = ko . observableArray ( ) ;
@@ -318,6 +320,7 @@ export class DomainPopupView extends AbstractViewPopup {
318320 }
319321
320322 autoconfig ( ) {
323+ this . detectingConfig ( true ) ;
321324 let domain = this . name ( ) ;
322325 Remote . request ( 'AdminDomainAutoconfig' , ( iError , oData ) => {
323326 if ( oData ?. Result ?. config ) {
@@ -335,6 +338,7 @@ export class DomainPopupView extends AbstractViewPopup {
335338 this . smtpUseAuth ( ! ! server . authentication ) ;
336339 this . smtpUsePhpMail ( false ) ;
337340 }
341+ this . detectingConfig ( false ) ;
338342 } , { domain} ) ;
339343 }
340344
Original file line number Diff line number Diff line change @@ -11,7 +11,10 @@ <h3 data-bind="text: headerText"></h3>
1111 < input name ="Name " type ="text " class ="span4 " autofocus ="" autocomplete ="off " autocorrect ="off " autocapitalize ="off "
1212 data-bind ="textInput: name ">
1313 < div class ="alert-error " data-bind ="visible: savingError, text: savingError "> </ div >
14- < button type ="button " data-bind ="click: autoconfig "> autoconfig</ button >
14+ < button class ="btn " type ="button " data-bind ="click: autoconfig ">
15+ < i class ="fontastic " data-bind ="css: {'icon-spinner': detectingConfig()} "> ⚙</ i >
16+ autoconfig
17+ </ button >
1518 </ div >
1619 < div class ="span5 alert-info domain-desc " data-bind ="visible: domainDesc, html: domainDesc "> </ div >
1720 </ div >
You can’t perform that action at this time.
0 commit comments