more work on establishing credentials

This commit is contained in:
2022-12-14 14:52:16 -08:00
parent 67705aa2d1
commit 10fd1d6028
4 changed files with 17 additions and 12 deletions

View File

@ -4,7 +4,7 @@
export let appState;
const dispatch = createEventDispatcher;
const dispatch = createEventDispatcher();
let AccessKeyId, SecretAccessKey, passphrase
async function save() {
@ -14,10 +14,10 @@
console.log(credentials);
await invoke('save_credentials', {credentials, passphrase});
if (appState.currentRequest) {
dispatch('navigate', {target: 'Approve'})
dispatch('navigate', {target: 'ShowApproved'})
}
else {
dispatch('navigate', {target: Home})
dispatch('navigate', {target: 'Home'})
}
}
catch (e) {