Skip to content

Commit 383e7de

Browse files
committed
Additional sorting for addresses
1 parent 5ebd727 commit 383e7de

1 file changed

Lines changed: 24 additions & 2 deletions

File tree

pages/addresses.vue

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -210,8 +210,30 @@ const handleLast = async () => {
210210
/>
211211
</Flex>
212212
</th>
213-
<th><Text size="12" weight="600" color="tertiary" noWrap>First Height</Text></th>
214-
<th><Text size="12" weight="600" color="tertiary" noWrap>Last Height</Text></th>
213+
<th @click="handleSort('first_height')" :class="$style.sortable">
214+
<Flex align="center" gap="6">
215+
<Text size="12" weight="600" color="tertiary" noWrap>First Height</Text>
216+
<Icon
217+
v-if="sort.by === 'first_height'"
218+
name="chevron"
219+
size="12"
220+
color="secondary"
221+
:style="{ transform: `rotate(${sort.dir === 'asc' ? '180' : '0'}deg)` }"
222+
/>
223+
</Flex>
224+
</th>
225+
<th @click="handleSort('last_height')" :class="$style.sortable">
226+
<Flex align="center" gap="6">
227+
<Text size="12" weight="600" color="tertiary" noWrap>Last Height</Text>
228+
<Icon
229+
v-if="sort.by === 'last_height'"
230+
name="chevron"
231+
size="12"
232+
color="secondary"
233+
:style="{ transform: `rotate(${sort.dir === 'asc' ? '180' : '0'}deg)` }"
234+
/>
235+
</Flex>
236+
</th>
215237
</tr>
216238
</thead>
217239

0 commit comments

Comments
 (0)