Skip to content

Commit 84d1c9b

Browse files
committed
fix: avoid router resolution in request signature tab modal
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
1 parent 78b6082 commit 84d1c9b

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

src/components/RightSidebar/RequestSignatureTab.vue

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,6 @@ import svgSignal from '../../../img/logo-signal-app.svg?raw'
308308
import svgTelegram from '../../../img/logo-telegram-app.svg?raw'
309309
import { FILE_STATUS, SIGN_REQUEST_STATUS } from '../../constants.js'
310310
import { openDocument } from '../../utils/viewer.js'
311-
import router from '../../router/router'
312311
import { useFilesStore } from '../../store/files.js'
313312
import { useSidebarStore } from '../../store/sidebar.js'
314313
import { useSignStore } from '../../store/sign.js'
@@ -875,8 +874,7 @@ export default {
875874
}
876875
877876
if (this.useModal) {
878-
const route = router.resolve({ name: 'ValidationFileExternal', params: { uuid: targetUuid } })
879-
this.modalSrc = route.href
877+
this.modalSrc = generateUrl('/apps/libresign/p/validation/{uuid}', { uuid: targetUuid })
880878
return
881879
}
882880
this.$router.push({ name: 'ValidationFile', params: { uuid: targetUuid } })
@@ -1026,8 +1024,7 @@ export default {
10261024
10271025
const uuid = file.signUuid
10281026
if (this.useModal) {
1029-
const route = router.resolve({ name: 'SignPDFExternal', params: { uuid } })
1030-
this.modalSrc = route.href
1027+
this.modalSrc = generateUrl('/apps/libresign/p/sign/{uuid}/pdf', { uuid })
10311028
return
10321029
}
10331030
this.signStore.setFileToSign(this.filesStore.getFile())

0 commit comments

Comments
 (0)