mirror of
https://github.com/portainer/portainer.git
synced 2025-08-02 20:35:25 +02:00
refactor(docker/volumes): migrate table to react [EE-4677] (#10312)
This commit is contained in:
parent
8e1417b4e9
commit
5c37ed328f
25 changed files with 402 additions and 395 deletions
|
@ -28,6 +28,7 @@ import { containersModule } from './containers';
|
|||
import { servicesModule } from './services';
|
||||
import { networksModule } from './networks';
|
||||
import { swarmModule } from './swarm';
|
||||
import { volumesModule } from './volumes';
|
||||
|
||||
const ngModule = angular
|
||||
.module('portainer.docker.react.components', [
|
||||
|
@ -35,6 +36,7 @@ const ngModule = angular
|
|||
servicesModule,
|
||||
networksModule,
|
||||
swarmModule,
|
||||
volumesModule,
|
||||
])
|
||||
.component('dockerfileDetails', r2a(DockerfileDetails, ['image']))
|
||||
.component('dockerHealthStatus', r2a(HealthStatus, ['health']))
|
||||
|
|
18
app/docker/react/components/volumes.ts
Normal file
18
app/docker/react/components/volumes.ts
Normal file
|
@ -0,0 +1,18 @@
|
|||
import angular from 'angular';
|
||||
|
||||
import { r2a } from '@/react-tools/react2angular';
|
||||
import { withUIRouter } from '@/react-tools/withUIRouter';
|
||||
import { VolumesDatatable } from '@/react/docker/volumes/ListView/VolumesDatatable';
|
||||
import { withCurrentUser } from '@/react-tools/withCurrentUser';
|
||||
|
||||
export const volumesModule = angular
|
||||
.module('portainer.docker.react.components.volumes', [])
|
||||
.component(
|
||||
'volumesDatatable',
|
||||
r2a(withUIRouter(withCurrentUser(VolumesDatatable)), [
|
||||
'dataset',
|
||||
'onRemove',
|
||||
'onRefresh',
|
||||
'isBrowseVisible',
|
||||
])
|
||||
).name;
|
Loading…
Add table
Add a link
Reference in a new issue