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

This commit is contained in:
刘祥超
2021-11-06 16:23:38 +08:00
parent 9f53f59f18
commit 3789ac6433
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 () {