diff options
author | vnugent <public@vaughnnugent.com> | 2024-01-21 21:57:54 -0500 |
---|---|---|
committer | vnugent <public@vaughnnugent.com> | 2024-01-21 21:57:54 -0500 |
commit | a44f7b7dc089776a7817cf077b3f3ae3db7fc22e (patch) | |
tree | 089bfa7e9eba560f9ae596568d6d981939e597f3 /front-end/src | |
parent | 6cb7da37824d02a1898d08d0f9495c77fde4dd1d (diff) |
configure ci, patch totp, and bookmarks context
Diffstat (limited to 'front-end/src')
-rw-r--r-- | front-end/src/components/Bookmarks.vue | 6 | ||||
-rw-r--r-- | front-end/src/components/Settings/TotpSettings.vue | 5 |
2 files changed, 7 insertions, 4 deletions
diff --git a/front-end/src/components/Bookmarks.vue b/front-end/src/components/Bookmarks.vue index 7aa3eb0..2a5a6d3 100644 --- a/front-end/src/components/Bookmarks.vue +++ b/front-end/src/components/Bookmarks.vue @@ -286,12 +286,12 @@ const upload = (() => { //update the progress bar progressPercent.value = Math.round((i+1) / chunks.length * 100); - - //refresh the bookmarks - store.bookmarks.refresh(); } }) + //refresh the bookmarks + store.bookmarks.refresh(); + //Force set progress once complete regardless of errors progressPercent.value = 100; progress.value.push('Upload complete'); diff --git a/front-end/src/components/Settings/TotpSettings.vue b/front-end/src/components/Settings/TotpSettings.vue index cc8642f..1d79914 100644 --- a/front-end/src/components/Settings/TotpSettings.vue +++ b/front-end/src/components/Settings/TotpSettings.vue @@ -71,6 +71,9 @@ const addOrUpdate = async () => { newConfig.secret = base32Encode(decSecret, 'RFC3548', { padding: false }) set(newTotpConfig, newConfig); + + //refresh config + store.mfaRefreshMethods(); }) } @@ -110,7 +113,7 @@ const onVerifyOtp = async (code: string) => { > </span> </div> - <div v-if="totpEnabled" class="flex" @click="addOrUpdate()"> + <div v-if="totpEnabled" class="flex"> <button class="btn light"> Regenerate </button> |