Skip to content

Commit

Permalink
fix: flush document after sign from app Files
Browse files Browse the repository at this point in the history
Signed-off-by: Vitor Mattos <[email protected]>
  • Loading branch information
vitormattos authored and backportbot-libresign[bot] committed Apr 15, 2024
1 parent d2360e7 commit 9ab7967
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/Components/RightSidebar/RequestSignatureTab.vue
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ export default {
methods: {
closeModal() {
this.modalSrc = ''
this.filesStore.flushSelectedFile()
},
validationFile() {
if (this.useModal) {
Expand Down
6 changes: 6 additions & 0 deletions src/store/files.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,12 @@ export const useFilesStore = defineStore('files', {
getFile() {
return this.files[this.selectedNodeId] ?? {}
},
async flushSelectedFile() {
const files = await this.getAllFiles({
nodeId: this.selectedNodeId,
})
this.addFile(files[this.selectedNodeId])
},
enableIdentifySigner() {
this.identifyingSigner = true
},
Expand Down
2 changes: 1 addition & 1 deletion src/views/Account/partials/Signature.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<h2>
<slot name="title" />
</h2>
<NcActions :inline="2" v-if="isSignatureLoaded">
<NcActions v-if="isSignatureLoaded" :inline="2">
<NcActionButton v-if="hasSignature" @click="removeSignature">
<template #icon>
<DeleteIcon :size="20" />
Expand Down

0 comments on commit 9ab7967

Please sign in to comment.