2023-09-07 14:19:03 +00:00
|
|
|
import angular from 'angular';
|
|
|
|
|
|
|
|
import { r2a } from '@/react-tools/react2angular';
|
|
|
|
import { withUIRouter } from '@/react-tools/withUIRouter';
|
|
|
|
import { TasksDatatable } from '@/react/docker/services/ListView/ServicesDatatable/TasksDatatable';
|
|
|
|
import { withCurrentUser } from '@/react-tools/withCurrentUser';
|
|
|
|
import { TaskTableQuickActions } from '@/react/docker/services/common/TaskTableQuickActions';
|
2023-10-22 09:32:05 +00:00
|
|
|
import { ServicesDatatable } from '@/react/docker/services/ListView/ServicesDatatable';
|
2023-09-07 14:19:03 +00:00
|
|
|
|
|
|
|
export const servicesModule = angular
|
|
|
|
.module('portainer.docker.react.components.services', [])
|
|
|
|
.component(
|
|
|
|
'dockerServiceTasksDatatable',
|
|
|
|
r2a(withUIRouter(withCurrentUser(TasksDatatable)), ['dataset', 'search'])
|
|
|
|
)
|
|
|
|
.component(
|
|
|
|
'dockerTaskTableQuickActions',
|
|
|
|
r2a(withUIRouter(withCurrentUser(TaskTableQuickActions)), [
|
|
|
|
'state',
|
|
|
|
'taskId',
|
|
|
|
])
|
2023-10-22 09:32:05 +00:00
|
|
|
)
|
|
|
|
.component(
|
|
|
|
'dockerServicesDatatable',
|
|
|
|
r2a(withUIRouter(withCurrentUser(ServicesDatatable)), [
|
|
|
|
'dataset',
|
|
|
|
'isAddActionVisible',
|
|
|
|
'isStackColumnVisible',
|
|
|
|
'onRefresh',
|
|
|
|
'titleIcon',
|
|
|
|
])
|
2023-09-07 14:19:03 +00:00
|
|
|
).name;
|