Skip to content

Commit

Permalink
Merge pull request #2775 from LibreSign/backport/2773/stable29
Browse files Browse the repository at this point in the history
[stable29] fix: flush document after sign from app Files
  • Loading branch information
vitormattos authored Apr 15, 2024
2 parents d2360e7 + 9ab7967 commit ae0e7e1
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 ae0e7e1

Please sign in to comment.