Skip to content

Commit

Permalink
refactor: adopt ErrorMessage from ui-svelte library
Browse files Browse the repository at this point in the history
Signed-off-by: Philippe Martin <[email protected]>
  • Loading branch information
feloy committed Jun 10, 2024
1 parent b4a6f20 commit 15feb79
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 36 deletions.
30 changes: 0 additions & 30 deletions packages/frontend/src/lib/ErrorMessage.svelte

This file was deleted.

3 changes: 1 addition & 2 deletions packages/frontend/src/pages/CreateService.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,11 @@ import { tasks } from '/@/stores/tasks';
import type { Task } from '@shared/src/models/ITask';
import { filterByLabel } from '/@/utils/taskUtils';
import TasksProgress from '/@/lib/progress/TasksProgress.svelte';
import ErrorMessage from '../lib/ErrorMessage.svelte';
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 } from '@podman-desktop/ui-svelte';
import { Button, ErrorMessage } from '@podman-desktop/ui-svelte';
// List of the models available locally
let localModels: ModelInfo[];
Expand Down
3 changes: 1 addition & 2 deletions packages/frontend/src/pages/ImportModels.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@ import { faMinusCircle, faPlusCircle, faUpload } from '@fortawesome/free-solid-s
import { router } from 'tinro';
import { studioClient } from '../utils/client';
import { Uri } from '@shared/src/uri/Uri';
import ErrorMessage from '../lib/ErrorMessage.svelte';
import NavPage from '../lib/NavPage.svelte';
import type { LocalModelImportInfo } from '@shared/src/models/ILocalModelInfo';
import { Button } from '@podman-desktop/ui-svelte';
import { Button, ErrorMessage } from '@podman-desktop/ui-svelte';
let modelsToImport: LocalModelImportInfo[] = [];
let importError: string = '';
Expand Down
3 changes: 1 addition & 2 deletions packages/frontend/src/pages/PlaygroundCreate.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ import TasksProgress from '../lib/progress/TasksProgress.svelte';
import { tasks } from '../stores/tasks';
import { filterByLabel } from '../utils/taskUtils';
import type { Unsubscriber } from 'svelte/store';
import ErrorMessage from '../lib/ErrorMessage.svelte';
import { Button } from '@podman-desktop/ui-svelte';
import { Button, ErrorMessage } from '@podman-desktop/ui-svelte';
let localModels: ModelInfo[];
$: localModels = $modelsInfo.filter(model => model.file);
Expand Down

0 comments on commit 15feb79

Please sign in to comment.