mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-16 05:30:27 +08:00
域名解析中可以删除和恢复某个域名
This commit is contained in:
@@ -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 () {
|
||||
|
||||
Reference in New Issue
Block a user