域名解析中可以删除和恢复某个域名

This commit is contained in:
GoEdgeLab
2021-11-06 16:23:38 +08:00
parent 3f0e664529
commit 29bbb726ff
8 changed files with 106 additions and 60 deletions

View File

@@ -1,5 +1,6 @@
Tea.context(function () {
this.isUpdatingDomains = false
this.hasDeletedDomains = this.domains.$find(function (k, v) {return v.isDeleted}) != null
this.$delay(function () {
this.syncDomains()
@@ -66,6 +67,18 @@ Tea.context(function () {
})
}
this.recoverDomain = function (domain) {
let that = this
teaweb.confirm("确定要恢复域名\"" + domain.name + "\"吗?", function () {
that.$post("/dns/domains/recover")
.params({
domainId: domain.id
})
.post()
.refresh()
})
}
this.syncDomain = function (index, domain) {
let that = this
teaweb.confirm("确定要同步此域名下的所有解析记录吗?", function () {