From 4fe2a7c750d53962fcdca1285d4ffab6241b35db Mon Sep 17 00:00:00 2001 From: Prabhat Khera <91852476+prabhat-org@users.noreply.github.com> Date: Thu, 22 Sep 2022 16:12:19 +1200 Subject: [PATCH] fix ingress screen loading (#7715) --- app/kubernetes/react/views/index.ts | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/app/kubernetes/react/views/index.ts b/app/kubernetes/react/views/index.ts index 6e4288c9a..2082872c7 100644 --- a/app/kubernetes/react/views/index.ts +++ b/app/kubernetes/react/views/index.ts @@ -3,8 +3,20 @@ import angular from 'angular'; import { r2a } from '@/react-tools/react2angular'; import { IngressesDatatableView } from '@/kubernetes/react/views/networks/ingresses/IngressDatatable'; import { CreateIngressView } from '@/kubernetes/react/views/networks/ingresses/CreateIngressView'; +import { withCurrentUser } from '@/react-tools/withCurrentUser'; +import { withReactQuery } from '@/react-tools/withReactQuery'; +import { withUIRouter } from '@/react-tools/withUIRouter'; export const viewsModule = angular .module('portainer.kubernetes.react.views', []) - .component('kubernetesIngressesView', r2a(IngressesDatatableView, [])) - .component('kubernetesIngressesCreateView', r2a(CreateIngressView, [])).name; + .component( + 'kubernetesIngressesView', + r2a( + withUIRouter(withReactQuery(withCurrentUser(IngressesDatatableView))), + [] + ) + ) + .component( + 'kubernetesIngressesCreateView', + r2a(withUIRouter(withReactQuery(withCurrentUser(CreateIngressView))), []) + ).name;