From 0848e5a5196348ed82c6e0fe2aa37d80db07d5ab Mon Sep 17 00:00:00 2001 From: Westly Wright Date: Mon, 30 Sep 2019 14:55:28 -0700 Subject: [PATCH] dedup import yaml button when istio feature flag is enabled When adding the vitual services and destination rules are enabeld we were showing the import yaml button twice. It needs to be visible on both tabs and we should be able to pass the or to the rbac check so I removed the duplicates and moved the button to before the potential other buttons in the istio nav. rancher/rancher#23155 --- lib/istio/addon/project-istio/template.hbs | 30 +++++----------------- 1 file changed, 7 insertions(+), 23 deletions(-) diff --git a/lib/istio/addon/project-istio/template.hbs b/lib/istio/addon/project-istio/template.hbs index 824088597..f73c36405 100644 --- a/lib/istio/addon/project-istio/template.hbs +++ b/lib/istio/addon/project-istio/template.hbs @@ -2,6 +2,13 @@ {{#istio-nav iconDisabled=model.iconDisabled }} + {{#if (eq currentRouteName "authenticated.project.istio.project-istio.rules")}} {{t "rulesPage.new"}} {{else if (eq currentRouteName "authenticated.project.istio.project-istio.destination-rules.index")}} - - {{#link-to "project-istio.destination-rules.new" scope.currentProject.id @@ -36,14 +35,6 @@ {{t "istio.nav.destinationRules.add"}} {{/link-to}} {{else if (eq currentRouteName "authenticated.project.istio.project-istio.virtual-services.index")}} - - {{#link-to "project-istio.virtual-services.new" scope.currentProject.id @@ -53,13 +44,6 @@ {{t "istio.nav.virtualServices.add"}} {{/link-to}} {{/if}} - {{/istio-nav}} {{outlet}} {{else}}