mirror of
https://github.com/portainer/portainer.git
synced 2025-07-24 07:49:41 +02:00
refactor(app): migrate remaining form sections [EE-6231] (#10938)
Some checks are pending
ci / build_images (map[arch:amd64 platform:linux]) (push) Waiting to run
ci / build_images (map[arch:amd64 platform:windows version:1809]) (push) Waiting to run
ci / build_images (map[arch:amd64 platform:windows version:ltsc2022]) (push) Waiting to run
ci / build_images (map[arch:arm64 platform:linux]) (push) Waiting to run
ci / build_manifests (push) Blocked by required conditions
/ triage (push) Waiting to run
Lint / Run linters (push) Waiting to run
Test / test-client (push) Waiting to run
Test / test-server (map[arch:amd64 platform:linux]) (push) Waiting to run
Test / test-server (map[arch:amd64 platform:windows version:1809]) (push) Waiting to run
Test / test-server (map[arch:amd64 platform:windows version:ltsc2022]) (push) Waiting to run
Test / test-server (map[arch:arm64 platform:linux]) (push) Waiting to run
Some checks are pending
ci / build_images (map[arch:amd64 platform:linux]) (push) Waiting to run
ci / build_images (map[arch:amd64 platform:windows version:1809]) (push) Waiting to run
ci / build_images (map[arch:amd64 platform:windows version:ltsc2022]) (push) Waiting to run
ci / build_images (map[arch:arm64 platform:linux]) (push) Waiting to run
ci / build_manifests (push) Blocked by required conditions
/ triage (push) Waiting to run
Lint / Run linters (push) Waiting to run
Test / test-client (push) Waiting to run
Test / test-server (map[arch:amd64 platform:linux]) (push) Waiting to run
Test / test-server (map[arch:amd64 platform:windows version:1809]) (push) Waiting to run
Test / test-server (map[arch:amd64 platform:windows version:ltsc2022]) (push) Waiting to run
Test / test-server (map[arch:arm64 platform:linux]) (push) Waiting to run
This commit is contained in:
parent
0b9cebc685
commit
4e7d1c7088
18 changed files with 456 additions and 284 deletions
|
@ -47,6 +47,15 @@ import {
|
|||
autoScalingValidation,
|
||||
} from '@/react/kubernetes/applications/components/AutoScalingFormSection';
|
||||
import { withControlledInput } from '@/react-tools/withControlledInput';
|
||||
import {
|
||||
NamespaceSelector,
|
||||
namespaceSelectorValidation,
|
||||
} from '@/react/kubernetes/applications/components/NamespaceSelector';
|
||||
import { EditYamlFormSection } from '@/react/kubernetes/applications/components/EditYamlFormSection';
|
||||
import {
|
||||
NameFormSection,
|
||||
appNameValidation,
|
||||
} from '@/react/kubernetes/applications/components/NameFormSection';
|
||||
|
||||
import { EnvironmentVariablesFieldset } from '@@/form-components/EnvironmentVariablesFieldset';
|
||||
|
||||
|
@ -135,9 +144,17 @@ export const ngModule = angular
|
|||
withUIRouter(
|
||||
withReactQuery(withCurrentUser(withControlledInput(StackName)))
|
||||
),
|
||||
['setStackName', 'isAdmin', 'stackName']
|
||||
['setStackName', 'stackName', 'stacks', 'inputClassName']
|
||||
)
|
||||
)
|
||||
.component(
|
||||
'editYamlFormSection',
|
||||
r2a(withUIRouter(withReactQuery(withCurrentUser(EditYamlFormSection))), [
|
||||
'values',
|
||||
'onChange',
|
||||
'isComposeFormat',
|
||||
])
|
||||
)
|
||||
.component(
|
||||
'applicationSummaryWidget',
|
||||
r2a(
|
||||
|
@ -298,3 +315,21 @@ withFormValidation(
|
|||
[],
|
||||
placementValidation
|
||||
);
|
||||
|
||||
withFormValidation(
|
||||
ngModule,
|
||||
withUIRouter(withCurrentUser(NamespaceSelector)),
|
||||
'namespaceSelector',
|
||||
['isEdit'],
|
||||
namespaceSelectorValidation,
|
||||
true
|
||||
);
|
||||
|
||||
withFormValidation(
|
||||
ngModule,
|
||||
withUIRouter(withCurrentUser(withReactQuery(NameFormSection))),
|
||||
'nameFormSection',
|
||||
['isEdit'],
|
||||
appNameValidation,
|
||||
true
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue