Initial commit (code only without large binaries)
This commit is contained in:
15
EdgeUser/web/views/@default/dns/providers/updatePopup.js
Normal file
15
EdgeUser/web/views/@default/dns/providers/updatePopup.js
Normal file
@@ -0,0 +1,15 @@
|
||||
Tea.context(function () {
|
||||
this.typeDescription = ""
|
||||
|
||||
let that = this
|
||||
this.types.forEach(function (v) {
|
||||
if (v.code == that.provider.type) {
|
||||
that.typeDescription = v.description
|
||||
}
|
||||
})
|
||||
|
||||
// DNSPod
|
||||
if (this.provider.type == "dnspod" && this.provider.params != null && (this.provider.params.apiType == null || this.provider.params.apiType.length == 0)) {
|
||||
this.provider.params.apiType = "dnsPodToken"
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user