mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-11-11 22:58:26 +00:00
#134 fix dynamic URL to go to person or thirdparty file
This commit is contained in:
@@ -43,7 +43,8 @@
|
||||
|
||||
<template v-slot:footer>
|
||||
<button v-if="action === 'show'"
|
||||
@click="goToLocation(id)"
|
||||
@click="goToLocation(id, type)"
|
||||
:title="$t('action.redirect.file')"
|
||||
class="btn btn-show">{{ $t('onthefly.show.file') }}
|
||||
</button>
|
||||
<button v-else
|
||||
@@ -140,8 +141,12 @@ export default {
|
||||
}
|
||||
this.modal.showModal = false;
|
||||
},
|
||||
goToLocation(id){
|
||||
window.location = `../../person/${id}/general`
|
||||
goToLocation(id, type){
|
||||
if(type == 'person'){
|
||||
window.location = `../../person/${id}/general`
|
||||
} else if(type == 'thirdparty') {
|
||||
window.location = `../../thirdparty/thirdparty/${id}/show`
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -151,4 +156,5 @@ export default {
|
||||
a {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user