Skip to content

Commit

Permalink
chore: fix wrong icon for ingress / routes details (podman-desktop#7423)
Browse files Browse the repository at this point in the history
chore: fix wrong icon

### What does this PR do?

Fixes the wrong icon in ingress / routes details.

### Screenshot / video of UI

<!-- If this PR is changing UI, please include
screenshots or screencasts showing the difference -->

### What issues does this PR fix or reference?

<!-- Include any related issues from Podman Desktop
repository (or from another issue tracker). -->

Closes podman-desktop#7395

### How to test this PR?

<!-- Please explain steps to verify the functionality,
do not forget to provide unit/component tests -->

N/A, small UI change.

Signed-off-by: Charlie Drage <[email protected]>
  • Loading branch information
cdrage authored Jun 3, 2024
1 parent 9b9a15c commit 3b685fb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { kubernetesCurrentContextIngresses } from '/@/stores/kubernetes-contexts
import Route from '../../Route.svelte';
import MonacoEditor from '../editor/MonacoEditor.svelte';
import ServiceIcon from '../images/ServiceIcon.svelte';
import IngressRouteIcon from '../images/IngressRouteIcon.svelte';
import StatusIcon from '../images/StatusIcon.svelte';
import KubeEditYAML from '../kube/KubeEditYAML.svelte';
import DetailsPage from '../ui/DetailsPage.svelte';
Expand Down Expand Up @@ -59,7 +59,7 @@ async function loadIngressDetails() {

{#if ingressUI}
<DetailsPage title="{ingressUI.name}" subtitle="{ingressUI.namespace}" bind:this="{detailsPage}">
<StatusIcon slot="icon" icon="{ServiceIcon}" size="{24}" status="{ingressUI.status}" />
<StatusIcon slot="icon" icon="{IngressRouteIcon}" size="{24}" status="{ingressUI.status}" />
<svelte:fragment slot="actions">
<IngressRouteActions ingressRoute="{ingressUI}" detailed="{true}" on:update="{() => (ingressUI = ingressUI)}" />
</svelte:fragment>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import type { V1Route } from '/@api/openshift-types';
import Route from '../../Route.svelte';
import MonacoEditor from '../editor/MonacoEditor.svelte';
import ServiceIcon from '../images/ServiceIcon.svelte';
import IngressRouteIcon from '../images/IngressRouteIcon.svelte';
import StatusIcon from '../images/StatusIcon.svelte';
import KubeEditYAML from '../kube/KubeEditYAML.svelte';
import DetailsPage from '../ui/DetailsPage.svelte';
Expand Down Expand Up @@ -59,7 +59,7 @@ async function loadRouteDetails() {

{#if routeUI}
<DetailsPage title="{routeUI.name}" subtitle="{routeUI.namespace}" bind:this="{detailsPage}">
<StatusIcon slot="icon" icon="{ServiceIcon}" size="{24}" status="{routeUI.status}" />
<StatusIcon slot="icon" icon="{IngressRouteIcon}" size="{24}" status="{routeUI.status}" />
<svelte:fragment slot="actions">
<IngressRouteActions ingressRoute="{routeUI}" detailed="{true}" on:update="{() => (routeUI = routeUI)}" />
</svelte:fragment>
Expand Down

0 comments on commit 3b685fb

Please sign in to comment.