Files

27 lines
560 B
JavaScript
Raw Permalink Normal View History

Tea.context(function () {
this.isRequesting = false
this.userId = 0
2024-07-27 15:42:58 +08:00
this.asyncCreateCert = false
this.providerCode = "letsencrypt"
this.remove = function (index) {
this.serverNames.$remove(index)
}
this.beforeSubmit = function () {
this.isRequesting = true
}
this.fail = function (resp) {
this.isRequesting = false
teaweb.warn(resp.message)
if (resp.data.acmeUser != null) {
this.users.push({
id: resp.data.acmeUser.id,
email: resp.data.acmeUser.email,
description: ""
})
this.userId = resp.data.acmeUser.id
}
}
})