all is change; in change is all again made new

This commit is contained in:
2022-11-27 22:03:15 -08:00
parent cee43342b9
commit c19b573b26
10 changed files with 241 additions and 46 deletions

View File

@ -1,10 +1,18 @@
<script>
import { createEventDispatcher } from 'svelte';
import { invoke } from '@tauri-apps/api/tauri';
export let appState;
const dispatch = createEventDispatcher();
function approve() {
dispatch('navigate', {target: 'ShowApproved'});
async function approve() {
if (appState.credentialStatus === 'unlocked') {
dispatch('navigate', {target: 'ShowApproved'});
}
else {
dispatch('navigate', {target: 'Unlock'});
}
}
function deny() {