Skip to content

Commit

Permalink
chore(web): Add missing data folders
Browse files Browse the repository at this point in the history
  • Loading branch information
MiladSadeghi committed Dec 4, 2024
1 parent 76bbb72 commit f6e264f
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 3 deletions.
6 changes: 6 additions & 0 deletions web/src/pages/ansible/docker/data/select-options.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
export const OSOptions = [
{
value: 'ubuntu',
label: 'Ubuntu',
},
];
6 changes: 6 additions & 0 deletions web/src/pages/ansible/kuber/data/select-options.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
export const OSOptions = [
{
value: 'ubuntu',
label: 'Ubuntu',
},
];
6 changes: 6 additions & 0 deletions web/src/pages/ansible/nginx/data/select-options.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
export const OSOptions = [
{
value: 'ubuntu',
label: 'Ubuntu',
},
];
4 changes: 2 additions & 2 deletions web/src/pages/helm-template/helm-template.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import { FormInput } from '@/components/form/form-input';
import { FormCheckbox } from '@/components/form/form-checkbox';
import { FormSelect } from '@/components/form/form-select';
import PodEnvironmentFields from './components/pod-environment-fields';
import type { HelmTemplate } from './helm-template.types';
import type { THelmTemplate } from './helm-template.types';

const HelmTemplate: FC = () => {
const { mutateAsync: helmTemplateMutate, isPending: helmTemplatePending } =
Expand Down Expand Up @@ -82,7 +82,7 @@ const HelmTemplate: FC = () => {
remove(index);
};

const handleSubmit = async (data: HelmTemplate) => {
const handleSubmit = async (data: THelmTemplate) => {
try {
const body_data = data.pods.map((data) => {
const { mode, accessModes, size } = data.persistance;
Expand Down
2 changes: 1 addition & 1 deletion web/src/pages/helm-template/helm-template.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,4 +83,4 @@ export const helmTemplateSchema = zod.object({
.min(1, 'API version is required'),
pods: zod.array(podSchema).min(1, 'At least one pod is required'),
});
export type HelmTemplate = zod.infer<typeof helmTemplateSchema>;
export type THelmTemplate = zod.infer<typeof helmTemplateSchema>;

0 comments on commit f6e264f

Please sign in to comment.