Skip to content

Commit

Permalink
Merge pull request #673 from webitel/fixlocale-in-team-hooks
Browse files Browse the repository at this point in the history
fix: locale in team hooks[WTEl-4500]
  • Loading branch information
Lera24 authored May 24, 2024
2 parents f995a35 + c3f8c90 commit ab692d4
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
@close="close"
>
<template #title>
{{ $tc('objects.ccenter.queues.hooks.hooks', 1) }}
{{ popupTitle }}
</template>
<template #main>
<form>
Expand Down Expand Up @@ -86,6 +86,10 @@ export default {
name: this.$t(`objects.ccenter.teams.hooks.eventTypes.${this.snakeToCamel(event)}`),
value: event,
} : {};
},
popupTitle() {
const action = this.id ? this.$t('reusable.edit') : this.$t('reusable.add');
return action + ' ' + this.$tc('objects.ccenter.queues.hooks.hooks', 1).toLowerCase();
}
},
Expand Down

0 comments on commit ab692d4

Please sign in to comment.