1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-23 07:19:41 +02:00
portainer/app/kubernetes/react/views/index.ts
Matt Hook 2188005b48
feat(kubernetes): add rolling restart button teaser [EE-4510] (#8126)
* rolling restart teaser button

* add be only rolling restart

* move position of button
2022-12-12 14:30:05 +13:00

34 lines
1.1 KiB
TypeScript

import angular from 'angular';
import { r2a } from '@/react-tools/react2angular';
import { withCurrentUser } from '@/react-tools/withCurrentUser';
import { withReactQuery } from '@/react-tools/withReactQuery';
import { withUIRouter } from '@/react-tools/withUIRouter';
import { BEOnlyButton } from '@/kubernetes/react/views/beOnlyButton';
import { IngressesDatatableView } from '@/react/kubernetes/ingresses/IngressDatatable';
import { CreateIngressView } from '@/react/kubernetes/ingresses/CreateIngressView';
export const viewsModule = angular
.module('portainer.kubernetes.react.views', [])
.component(
'kubernetesIngressesView',
r2a(
withUIRouter(withReactQuery(withCurrentUser(IngressesDatatableView))),
[]
)
)
.component(
'kubernetesIngressesCreateView',
r2a(withUIRouter(withReactQuery(withCurrentUser(CreateIngressView))), [])
)
.component(
'beOnlyButton',
r2a(withUIRouter(withReactQuery(withCurrentUser(BEOnlyButton))), [
'featureId',
'heading',
'message',
'buttonText',
'className',
'icon',
])
).name;