#134 fixes show button for thirdparty

This commit is contained in:
2021-08-20 16:52:35 +02:00
parent 698514ef12
commit 7363092d51
2 changed files with 22 additions and 4 deletions

View File

@@ -44,8 +44,8 @@
<template v-slot:footer>
<button v-if="action === 'show'"
@click="goToLocation(id, type)"
:title="$t('action.redirect.file')"
class="btn btn-show">{{ $t('onthefly.show.file') }}
:title="$t(titleMessage)"
class="btn btn-show">{{ $t(buttonMessage) }}
</button>
<button v-else
class="btn btn-save"
@@ -116,6 +116,22 @@ export default {
case 'create':
return 'onthefly.create.title';
}
},
titleMessage() {
switch (this.type){
case 'person':
return 'action.redirect.' + this.type;
case 'thirdparty':
return 'action.redirect.' + this.type;
}
},
buttonMessage(){
switch (this.type){
case 'person':
return 'onthefly.show.file_' + this.type;
case 'thirdparty':
return 'onthefly.show.file_' + this.type;
}
}
},
methods: {