mirror of https://github.com/rancher/ui.git
Merge pull request #3270 from n313893254/22213
Add condiction to check cluster isReady for cluster Istio
This commit is contained in:
commit
dec488283d
|
|
@ -45,7 +45,7 @@
|
|||
{{#each item.submenu as |subitem|}}
|
||||
{{#if subitem.route}}
|
||||
{{#if (or (not subitem.resource) (rbac-allows resource=subitem.resource scope=subitem.resourceScope))}}
|
||||
<li class="{{if (and subitem.disableIfClusterNotReady (not cluster.isReady)) "pointer-events-none"}}">
|
||||
<li>
|
||||
{{#link-to-as-attrs
|
||||
ourRoute=subitem.route
|
||||
ctx=subitem.ctx
|
||||
|
|
|
|||
|
|
@ -284,11 +284,10 @@ const rootNav = [
|
|||
localizedLabel: 'nav.tools.istio',
|
||||
route: 'authenticated.cluster.istio.cluster-setting',
|
||||
resourceScope: 'global',
|
||||
disableIfClusterNotReady: true,
|
||||
resource: [],
|
||||
ctx: [getClusterId],
|
||||
condition() {
|
||||
return !get(this, 'cluster.isWindows');
|
||||
return !get(this, 'cluster.isWindows') && get(this, 'cluster.isReady');
|
||||
},
|
||||
},
|
||||
],
|
||||
|
|
|
|||
Loading…
Reference in New Issue