From 5204628c242f824ab6e5749e0c87ecf0f4b87d79 Mon Sep 17 00:00:00 2001 From: Philippe Martin Date: Thu, 20 Jun 2024 20:48:52 +0200 Subject: [PATCH] chore: light mode for Create Service page Signed-off-by: Philippe Martin --- packages/frontend/src/pages/CreateService.spec.ts | 2 +- packages/frontend/src/pages/CreateService.svelte | 12 +++++++----- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/packages/frontend/src/pages/CreateService.spec.ts b/packages/frontend/src/pages/CreateService.spec.ts index f2c1aa4bb..a2c9ecc83 100644 --- a/packages/frontend/src/pages/CreateService.spec.ts +++ b/packages/frontend/src/pages/CreateService.spec.ts @@ -243,7 +243,7 @@ test('form should be disabled when loading', async () => { const select = screen.getByRole('combobox', { name: 'Model select' }); expect(select).toBeDisabled(); - const input = screen.getByRole('spinbutton', { name: 'Port input' }); + const input = screen.getByRole('textbox', { name: 'Port input' }); expect(input).toBeDisabled(); }); }); diff --git a/packages/frontend/src/pages/CreateService.svelte b/packages/frontend/src/pages/CreateService.svelte index 582285f39..c908425ec 100644 --- a/packages/frontend/src/pages/CreateService.svelte +++ b/packages/frontend/src/pages/CreateService.svelte @@ -14,7 +14,7 @@ import { inferenceServers } from '/@/stores/inferenceServers'; import ContainerConnectionStatusInfo from '../lib/notification/ContainerConnectionStatusInfo.svelte'; import type { ContainerConnectionInfo } from '@shared/src/models/IContainerConnectionInfo'; import { checkContainerConnectionStatus } from '../utils/connectionUtils'; -import { Button, ErrorMessage, FormPage } from '@podman-desktop/ui-svelte'; +import { Button, ErrorMessage, FormPage, Input } from '@podman-desktop/ui-svelte'; // List of the models available locally let localModels: ModelInfo[]; @@ -161,7 +161,8 @@ export function goToUpPage(): void {
- + Container port +