Skip to content

Commit

Permalink
chore: adopt Spinner from svelte ui library (#1197)
Browse files Browse the repository at this point in the history
* chore: adopt Spinner from svelte ui library

Fixes #963

Signed-off-by: Jeff MAURY <[email protected]>
  • Loading branch information
jeffmaury authored Jun 12, 2024
1 parent 2cb8f24 commit 4d699f1
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 58 deletions.
3 changes: 1 addition & 2 deletions packages/frontend/src/lib/RecipeDetails.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ import PodIcon from '/@/lib/images/PodIcon.svelte';
import StatusIcon from '/@/lib/StatusIcon.svelte';
import type { ModelInfo } from '@shared/src/models/IModelInfo';
import { getApplicationStatus, getApplicationStatusText } from '../pages/applications';
import Spinner from './button/Spinner.svelte';
import { Button } from '@podman-desktop/ui-svelte';
import { Button, Spinner } from '@podman-desktop/ui-svelte';
export let recipeId: string;
export let modelId: string;
Expand Down
2 changes: 1 addition & 1 deletion packages/frontend/src/lib/StatusIcon.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import type { KnownStatus } from './StatusIcon';
// status: one of RUNNING, STARTING, USED, CREATED, DELETING, or DEGRADED
// any other status will result in a standard outlined box
import Spinner from '/@/lib/button/Spinner.svelte';
import { Spinner } from '@podman-desktop/ui-svelte';
export let status: KnownStatus | string = '';
export let icon: any = undefined;
Expand Down
53 changes: 0 additions & 53 deletions packages/frontend/src/lib/button/Spinner.svelte

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { getApplicationStatus } from '../../../pages/applications';
import type { ApplicationState } from '@shared/src/models/IApplicationState';
import StatusIcon from '../../StatusIcon.svelte';
import PodIcon from '../../images/PodIcon.svelte';
import Spinner from '../../button/Spinner.svelte';
import { Spinner } from '@podman-desktop/ui-svelte';
export let object: ApplicationState;
$: status = getApplicationStatus(object);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import type { InferenceServer } from '@shared/src/models/IInference';
import StatusIcon from '/@/lib/StatusIcon.svelte';
import { studioClient } from '/@/utils/client';
import Spinner from '/@/lib/button/Spinner.svelte';
import { Spinner } from '@podman-desktop/ui-svelte';
import { ContainerIcon } from '@podman-desktop/ui-svelte/icons';
export let object: InferenceServer;
Expand Down

0 comments on commit 4d699f1

Please sign in to comment.