portainer/portainer

View on GitHub
app/kubernetes/react/components/applications.ts

Summary

Maintainability
A
1 hr
Test Coverage
import angular from 'angular';

import { r2a } from '@/react-tools/react2angular';
import { withUIRouter } from '@/react-tools/withUIRouter';
import { withCurrentUser } from '@/react-tools/withCurrentUser';
import { ApplicationsDatatable } from '@/react/kubernetes/applications/ListView/ApplicationsDatatable/ApplicationsDatatable';

export const applicationsModule = angular
  .module('portainer.kubernetes.react.components.applications', [])

  .component(
    'kubernetesApplicationsDatatable',
    r2a(withUIRouter(withCurrentUser(ApplicationsDatatable)), [
      'dataset',
      'isLoading',
      'namespace',
      'namespaces',
      'onNamespaceChange',
      'onRefresh',
      'showSystem',
      'onShowSystemChange',
      'onRemove',
      'hideStacks',
    ])
  ).name;