feat(www): add sort clients by name (#1227)

Co-authored-by: Philip H. <47042125+pheiduck@users.noreply.github.com>
This commit is contained in:
Võ Hoàng
2024-08-17 00:40:24 +07:00
committed by GitHub
parent 7c521e8733
commit ca7ee32052
8 changed files with 60 additions and 2 deletions

View File

@@ -112,6 +112,15 @@
</svg>
<span class="max-md:hidden text-sm">{{$t("backup")}}</span>
</a>
<!-- Sort client -->
<div v-if="enableSortClient === true">
<button @click="sortClient = !sortClient;"
class="hover:bg-red-800 hover:border-red-800 hover:text-white text-gray-700 dark:text-neutral-200 max-md:border-l-0 border-2 border-gray-100 dark:border-neutral-600 py-2 px-4 rounded-r-full md:rounded inline-flex items-center transition">
<span v-if="sortClient === false" class="max-md:hidden text-sm">{{$t("sort")}} ↑</span>
<span v-if="sortClient === true" class="max-md:hidden text-sm">{{$t("sort")}} ↓</span>
</button>
</div>
<!-- New client -->
<button @click="clientCreate = true; clientCreateName = '';"
class="hover:bg-red-800 hover:border-red-800 hover:text-white text-gray-700 dark:text-neutral-200 max-md:border-l-0 border-2 border-gray-100 dark:border-neutral-600 py-2 px-4 rounded-r-full md:rounded inline-flex items-center transition">