navigate on credentials request
This commit is contained in:
parent
3ea9455f7e
commit
636cdf1b8f
@ -3,12 +3,11 @@ import { emit, listen } from '@tauri-apps/api/event';
|
||||
import Home from './views/Home.svelte';
|
||||
import Approve from './views/Approve.svelte';
|
||||
|
||||
// listen('credentials-request', (event) => {
|
||||
// const passphrase = prompt('Please enter your passphrase:');
|
||||
// emit('passphrase-entered', passphrase);
|
||||
// });
|
||||
let activeComponent = Home;
|
||||
|
||||
let activeComponent = Approve;
|
||||
listen('credentials-request', (event) => {
|
||||
activeComponent = Approve;
|
||||
})
|
||||
</script>
|
||||
|
||||
<svelte:component this={activeComponent} />
|
||||
|
Loading…
x
Reference in New Issue
Block a user