move app state to store
This commit is contained in:
@ -3,11 +3,11 @@
|
||||
import { invoke } from '@tauri-apps/api/tauri';
|
||||
import { getRootCause } from '../lib/errors.js';
|
||||
|
||||
import { appState } from '../lib/state.js';
|
||||
import { navigate } from '../lib/routing.js';
|
||||
import Link from '../ui/Link.svelte';
|
||||
import ErrorAlert from '../ui/ErrorAlert.svelte';
|
||||
|
||||
export let appState;
|
||||
|
||||
let errorMsg = null;
|
||||
let alert;
|
||||
@ -19,7 +19,7 @@
|
||||
|
||||
try {
|
||||
await invoke('save_credentials', {credentials, passphrase});
|
||||
if (appState.currentRequest) {
|
||||
if ($appState.currentRequest) {
|
||||
navigate('ShowApproved');
|
||||
}
|
||||
else {
|
||||
|
Reference in New Issue
Block a user