Skip to content

Commit 5cbb8a3

Browse files
style(tables): Display sorting descriptive text below headline and only if at least 2 sorting items are present
AI-assistant: Claude Code v2.1.109 (Claude Sonnet 4.6) Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
1 parent 0f00589 commit 5cbb8a3

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

src/modules/main/partials/editTablePartials/DefaultSortRules.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
-->
55
<template>
66
<div class="filter-section">
7+
<p v-if="mutableSort.length >= 2" class="span">
8+
{{ t('tables', 'Rules are applied in order. The first rule sorts all rows, and any additional rules determine the order within any group of rows that share the same value.') }}
9+
</p>
710
<div v-for="(sortingRule, i) in mutableSort" :key="sortingRule.columnId ?? '' + i">
811
<SortEntry
912
:sort-entry="sortingRule"
@@ -20,9 +23,6 @@
2023
<Plus :size="25" />
2124
</template>
2225
</NcButton>
23-
<p class="span">
24-
{{ t('tables', 'The sorting rules are applied sequentially, meaning that if there are rows with the same priority to the first rule, the second rule determines the order among those rows.') }}
25-
</p>
2626
</div>
2727
</template>
2828

src/modules/main/partials/editViewPartials/sort/SortForm.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@
1818
</NcButton>
1919
</div>
2020
<div v-else>
21+
<p v-if="mutableSort.length >= 2" class="span">
22+
{{ t('tables', 'Rules are applied in order. The first rule sorts all rows, and any additional rules determine the order within any group of rows that share the same value.') }}
23+
</p>
2124
<div v-for="(sortingRule, i) in removedSortingRules" :key="'deleted'+sortingRule.columnId+i">
2225
<DeletedSortEntry
2326
:sort-entry="sortingRule"
@@ -42,9 +45,6 @@
4245
<Plus :size="25" />
4346
</template>
4447
</NcButton>
45-
<p class="span">
46-
{{ t('tables', 'The sorting rules are applied sequentially, meaning that if there are rows with the same priority to the first rule, the second rule determines the order among those rows.') }}
47-
</p>
4848
</div>
4949
</div>
5050
</template>

0 commit comments

Comments
 (0)