mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-14 20:30:25 +08:00
增加置顶集群功能
This commit is contained in:
@@ -4,4 +4,15 @@ Tea.context(function () {
|
||||
this.showLatest = function () {
|
||||
this.latestVisible = !this.latestVisible
|
||||
}
|
||||
|
||||
this.pin = function (clusterId, isPinned) {
|
||||
this.$post(".pin")
|
||||
.params({
|
||||
clusterId: clusterId,
|
||||
isPinned: isPinned
|
||||
})
|
||||
.success(function () {
|
||||
teaweb.reload()
|
||||
})
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user