mirror of
https://github.com/portainer/portainer.git
synced 2025-07-24 07:49:41 +02:00
refactor(docker/containers): migrate env vars to react [EE-5211] (#10345)
This commit is contained in:
parent
54112b56f2
commit
16ccf5871e
8 changed files with 103 additions and 24 deletions
|
@ -0,0 +1,11 @@
|
|||
import { parseArrayOfStrings } from '@@/form-components/EnvironmentVariablesFieldset/utils';
|
||||
|
||||
import { ContainerJSON } from '../../queries/container';
|
||||
|
||||
export function getDefaultViewModel() {
|
||||
return [];
|
||||
}
|
||||
|
||||
export function toViewModel(container: ContainerJSON) {
|
||||
return parseArrayOfStrings(container.Config?.Env);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue