Update translation

This commit is contained in:
rijkvanzanten
2020-12-30 13:18:09 -05:00
parent 146452f98c
commit c53aef4a45
2 changed files with 12 additions and 17 deletions

View File

@@ -12,27 +12,23 @@
</th>
<th v-if="showSelect" class="select cell" scope="col">
<v-checkbox
:inputValue="allItemsSelected"
:indeterminate="someItemsSelected"
@change="toggleSelectAll"
/>
<v-checkbox :inputValue="allItemsSelected" :indeterminate="someItemsSelected" @change="toggleSelectAll" />
</th>
<th
v-for="header in headers"
:key="header.value"
:class="getClassesForHeader(header)"
class="cell"
scope="col"
>
<th v-for="header in headers" :key="header.value" :class="getClassesForHeader(header)" class="cell" scope="col">
<div class="content" @click="changeSort(header)">
<span v-show="header.width > 90 || header.width === null">
<slot :name="`header.${header.value}`" :header="header">
{{ header.text }}
</slot>
</span>
<v-icon v-if="header.sortable" name="sort" class="sort-icon" small v-tooltip.top="$t(getTooltipForSortIcon(header))"/>
<v-icon
v-if="header.sortable"
name="sort"
class="sort-icon"
small
v-tooltip.top="$t(getTooltipForSortIcon(header))"
/>
</div>
<span
class="resize-handle"
@@ -147,7 +143,7 @@ export default defineComponent({
}
function getTooltipForSortIcon(header: Header) {
return props.sort.by === header.value && props.sort.desc === false ? 'sort_direction.desc' : 'sort_direction.asc';
return props.sort.by === header.value && props.sort.desc === false ? 'sort_desc' : 'sort_asc';
}
function changeSort(header: Header) {

View File

@@ -770,9 +770,8 @@ sign_out: Sign Out
sign_out_confirm: Are you sure you want to sign out?
something_went_wrong: Something went wrong.
sort_direction: Sort Direction
sort_direction:
asc: Sort Ascending
desc: Sort Descending
sort_asc: Sort Ascending
sort_desc: Sort Descending
template: Template
translation: Translation
value: Value