Skip to content

Commit c13d15c

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 c855cb6 commit c13d15c

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

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'
@@ -878,8 +877,7 @@ export default {
878877
}
879878
880879
if (this.useModal) {
881-
const route = router.resolve({ name: 'ValidationFileExternal', params: { uuid: targetUuid } })
882-
this.modalSrc = route.href
880+
this.modalSrc = generateUrl('/apps/libresign/p/validation/{uuid}', { uuid: targetUuid })
883881
return
884882
}
885883
this.$router.push({ name: 'ValidationFile', params: { uuid: targetUuid } })
@@ -1029,8 +1027,7 @@ export default {
10291027
10301028
const uuid = file.signUuid
10311029
if (this.useModal) {
1032-
const route = router.resolve({ name: 'SignPDFExternal', params: { uuid } })
1033-
this.modalSrc = route.href
1030+
this.modalSrc = generateUrl('/apps/libresign/p/sign/{uuid}/pdf', { uuid })
10341031
return
10351032
}
10361033
this.signStore.setFileToSign(this.filesStore.getFile())

0 commit comments

Comments
 (0)