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 Home from './views/Home.svelte';
|
||||||
import Approve from './views/Approve.svelte';
|
import Approve from './views/Approve.svelte';
|
||||||
|
|
||||||
// listen('credentials-request', (event) => {
|
let activeComponent = Home;
|
||||||
// const passphrase = prompt('Please enter your passphrase:');
|
|
||||||
// emit('passphrase-entered', passphrase);
|
|
||||||
// });
|
|
||||||
|
|
||||||
let activeComponent = Approve;
|
listen('credentials-request', (event) => {
|
||||||
|
activeComponent = Approve;
|
||||||
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<svelte:component this={activeComponent} />
|
<svelte:component this={activeComponent} />
|
||||||
|
Loading…
x
Reference in New Issue
Block a user