mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-25 10:09:20 +03:00
Improved domain autoconfig interaction
This commit is contained in:
parent
6a1b83b365
commit
113003f485
2 changed files with 8 additions and 1 deletions
|
|
@ -148,6 +148,8 @@ export class DomainPopupView extends AbstractViewPopup {
|
||||||
imapHostFocus: false,
|
imapHostFocus: false,
|
||||||
sieveHostFocus: false,
|
sieveHostFocus: false,
|
||||||
smtpHostFocus: false,
|
smtpHostFocus: false,
|
||||||
|
|
||||||
|
detectingConfig: false
|
||||||
});
|
});
|
||||||
this.imapDisabled_capabilities = ko.observableArray();
|
this.imapDisabled_capabilities = ko.observableArray();
|
||||||
this.imapCapabilities = ko.observableArray();
|
this.imapCapabilities = ko.observableArray();
|
||||||
|
|
@ -318,6 +320,7 @@ export class DomainPopupView extends AbstractViewPopup {
|
||||||
}
|
}
|
||||||
|
|
||||||
autoconfig() {
|
autoconfig() {
|
||||||
|
this.detectingConfig(true);
|
||||||
let domain = this.name();
|
let domain = this.name();
|
||||||
Remote.request('AdminDomainAutoconfig', (iError, oData) => {
|
Remote.request('AdminDomainAutoconfig', (iError, oData) => {
|
||||||
if (oData?.Result?.config) {
|
if (oData?.Result?.config) {
|
||||||
|
|
@ -335,6 +338,7 @@ export class DomainPopupView extends AbstractViewPopup {
|
||||||
this.smtpUseAuth(!!server.authentication);
|
this.smtpUseAuth(!!server.authentication);
|
||||||
this.smtpUsePhpMail(false);
|
this.smtpUsePhpMail(false);
|
||||||
}
|
}
|
||||||
|
this.detectingConfig(false);
|
||||||
}, {domain});
|
}, {domain});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,10 @@
|
||||||
<input name="Name" type="text" class="span4" autofocus="" autocomplete="off" autocorrect="off" autocapitalize="off"
|
<input name="Name" type="text" class="span4" autofocus="" autocomplete="off" autocorrect="off" autocapitalize="off"
|
||||||
data-bind="textInput: name">
|
data-bind="textInput: name">
|
||||||
<div class="alert-error" data-bind="visible: savingError, text: savingError"></div>
|
<div class="alert-error" data-bind="visible: savingError, text: savingError"></div>
|
||||||
<button type="button" data-bind="click: autoconfig">autoconfig</button>
|
<button class="btn" type="button" data-bind="click: autoconfig">
|
||||||
|
<i class="fontastic" data-bind="css: {'icon-spinner': detectingConfig()}">⚙</i>
|
||||||
|
autoconfig
|
||||||
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<div class="span5 alert-info domain-desc" data-bind="visible: domainDesc, html: domainDesc"></div>
|
<div class="span5 alert-info domain-desc" data-bind="visible: domainDesc, html: domainDesc"></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue