Skip to content
代码片段 群组 项目
提交 b44f5af9 编辑于 作者: Thuc Tran's avatar Thuc Tran
浏览文件

NOJIRA Add cluster filter to show only enabled clusters when you have cluster filters enabled

上级 bd123393
No related branches found
No related tags found
无相关合并请求
......@@ -161,6 +161,13 @@ export default {
.filter((a) => {
return a.domainName == domainName
})
.filter((a) => {
return typeof this.filter.clusterFilterFn === 'function'
? this.filter.clusterFilterFn(a, {
enabledClusters: this.enabledClusters,
})
: true
})
.sort(function (b, a) {
return a.code > b.code
})
......
......@@ -54,6 +54,13 @@ export default function () {
.map((a) => a.domainName)
.includes(domain)
},
clusterFilterFn: (cluster, context) => {
return (
context.enabledClusters.find((a) => {
return cluster.id == a.id
}) != undefined
)
},
},
{
label: 'Close All',
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册