File tree 2 files changed +9
-7
lines changed
packages/renderer/src/lib/kubernetes-port-forward
2 files changed +9
-7
lines changed Original file line number Diff line number Diff line change
1
+ <script lang =" ts" >
2
+ import { faEthernet } from ' @fortawesome/free-solid-svg-icons/faEthernet' ;
3
+ import Fa from ' svelte-fa' ;
4
+ </script >
5
+
6
+ <Fa class ="w-[20px]" scale ={1.5 } icon ={faEthernet } />
Original file line number Diff line number Diff line change 1
1
<script lang =" ts" >
2
- import { faEthernet } from ' @fortawesome/free-solid-svg-icons' ;
3
2
import { StatusIcon } from ' @podman-desktop/ui-svelte' ;
4
- import Fa from ' svelte-fa' ;
5
3
6
4
import type { ForwardConfig } from ' /@api/kubernetes-port-forward-model' ;
7
5
6
+ import EthernetIcon from ' ./EthernetIcon.svelte' ;
7
+
8
8
interface Props {
9
9
object: ForwardConfig ;
10
10
}
11
11
let { object }: Props = $props ();
12
12
</script >
13
13
14
- {#snippet Ethernet ()}
15
- <Fa class ="w-[20px]" scale ={1.5 } icon ={faEthernet } />
16
- {/ snippet }
17
-
18
14
{#if object }
19
- <StatusIcon status ="RUNNING" icon ={Ethernet } />
15
+ <StatusIcon status ="RUNNING" icon ={EthernetIcon } />
20
16
{/if }
You can’t perform that action at this time.
0 commit comments