Skip to content

Commit

Permalink
chore: change button label to log page #100
Browse files Browse the repository at this point in the history
  • Loading branch information
wazolab authored and frodrigo committed Apr 30, 2024
1 parent e17504e commit e0114a1
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
11 changes: 7 additions & 4 deletions components/ProjectLight.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,16 @@ const props = defineProps<{
}>()
const route = useRoute()
const detailsLink = computed(() => {
const { t } = useI18n()
const details = computed(() => {
let label = t('project.details')
let url = `/${props.project.id}`
if (route.name === 'index') {
label = t('project.control')
url += '/changes_logs'
}
return url
return { label, url }
})
</script>

Expand All @@ -37,8 +40,8 @@ const detailsLink = computed(() => {
<nuxt-link class="el-button" :to="`/${project.id}/validators`">
{{ $t('project.settings') }}
</nuxt-link>
<nuxt-link class="el-button el-button--primary" :to="detailsLink">
{{ $t('project.details') }}
<nuxt-link class="el-button el-button--primary" :to="details.url">
{{ details.label }}
</nuxt-link>
</el-button-group>
</header>
Expand Down
1 change: 1 addition & 0 deletions locales/en.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ export default {
validate_selection: 'Validate all filtered',
},
project: {
control: 'Control',
details: 'Details',
seeMore: '+ See details',
user_group_label: 'Group',
Expand Down
1 change: 1 addition & 0 deletions locales/es.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ export default {
validate_selection: 'Validar objetos filtrados',
},
project: {
control: 'Control',
details: 'Detalle',
seeMore: '+ Ver los detalles',
user_group_label: 'Groupo',
Expand Down
1 change: 1 addition & 0 deletions locales/fr.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ export default {
validate_selection: 'Valider les objets filtrés',
},
project: {
control: 'Contrôle',
details: 'Détails',
seeMore: '+ Voir les détails',
user_group_label: 'Groupe',
Expand Down

0 comments on commit e0114a1

Please sign in to comment.