icon picker component
This commit is contained in:
@ -2,6 +2,8 @@
|
||||
import { createEventDispatcher } from 'svelte';
|
||||
import { invoke } from '@tauri-apps/api/tauri';
|
||||
|
||||
import Icon from '../ui/icon.svelte';
|
||||
|
||||
export let appState;
|
||||
|
||||
const dispatch = createEventDispatcher();
|
||||
@ -40,20 +42,16 @@
|
||||
<div class="text-center">
|
||||
<ul class="text-gray-200">
|
||||
{#each appState.currentRequest.clients as client}
|
||||
<li>PID: {client.pid}</li>
|
||||
<li>Path: {client.exe}</li>
|
||||
<li>PID: {client ? client.pid : 'Unknown'}</li>
|
||||
<li>Path: {client ? client.exe : 'Unknown'}</li>
|
||||
{/each}
|
||||
</ul>
|
||||
|
||||
<button on:click={approve}>
|
||||
<svg class="w-32 stroke-green-500" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="1">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" d="M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z" />
|
||||
</svg>
|
||||
<Icon name="check-circle" class="w-32 stroke-green-500" />
|
||||
</button>
|
||||
|
||||
<button on:click={deny}>
|
||||
<svg class="w-32 stroke-red-600" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="1">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" d="M10 14l2-2m0 0l2-2m-2 2l-2-2m2 2l2 2m7-2a9 9 0 11-18 0 9 9 0 0118 0z" />
|
||||
</svg>
|
||||
<Icon name="x-circle" class="w-32 stroke-red-600" />
|
||||
</button>
|
||||
</div>
|
Reference in New Issue
Block a user