more work on establishing credentials
This commit is contained in:
@ -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) {
|
||||
|
Reference in New Issue
Block a user