1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-19 13:29:41 +02:00

fix(edge-stacks): various custom template issues [BE-11414] (#189)

This commit is contained in:
Ali 2024-12-09 17:48:34 +13:00 committed by GitHub
parent 16a1825990
commit 97e7a3c5e2
24 changed files with 749 additions and 374 deletions

View file

@ -1,3 +1,4 @@
import { InlineLoader } from '@@/InlineLoader';
import { WebEditorForm } from '@@/WebEditorForm';
export function DockerContentField({
@ -5,12 +6,18 @@ export function DockerContentField({
onChange,
readonly,
value,
isLoading,
}: {
value: string;
onChange: (value: string) => void;
error?: string;
readonly?: boolean;
isLoading?: boolean;
}) {
if (isLoading) {
return <InlineLoader>Loading stack content...</InlineLoader>;
}
return (
<WebEditorForm
id="stack-creation-editor"