From 527a64d99fe11aa8d7f96e70a019131b4bc9908b Mon Sep 17 00:00:00 2001 From: Westly Wright Date: Fri, 27 Mar 2020 10:51:34 -0700 Subject: [PATCH] Handle disable at the route level and recreate a new gatekeeper app so you can re-enable without having to refresh the page rancher/dashboard#394 --- components/GatekeeperConfig.vue | 5 ++- pages/c/_cluster/gatekeeper/index.vue | 61 +++++++++++++++++++++++---- 2 files changed, 56 insertions(+), 10 deletions(-) diff --git a/components/GatekeeperConfig.vue b/components/GatekeeperConfig.vue index 5d93de093f..0e8e78bae7 100644 --- a/components/GatekeeperConfig.vue +++ b/components/GatekeeperConfig.vue @@ -1,4 +1,5 @@ @@ -167,7 +212,7 @@ export default { :mode="mode" :namespaces="namespaces" :projects="projects" - @gatekeeperEnabled="status => gatekeeperEnabled = status" + @gatekeeperEnabled="syncGatekeeperStatus" />