feat (client): turn unread notification tab into reactions tab

This commit is contained in:
naskya 2024-02-16 04:06:30 +09:00
parent b665a5bccf
commit 794443c859
No known key found for this signature in database
GPG key ID: 712D413B3A9FED5C
2 changed files with 7 additions and 6 deletions

View file

@ -4,6 +4,7 @@
- remove auto NSFW media detection
- the "Hide NSFW media" config is now per device and per account
- increase the max number of pinned posts from 5 to 15
- change the second tab on the notifications page from "unread" to "reactions"
# v20240216

View file

@ -35,8 +35,8 @@
<swiper-slide>
<XNotifications
class="notifications"
:include-types="includeTypes"
:unread-only="true"
:include-types="['reaction']"
:unread-only="false"
/>
</swiper-slide>
<swiper-slide>
@ -66,7 +66,7 @@ import icon from "@/scripts/icon";
import "swiper/scss";
import "swiper/scss/virtual";
const tabs = ["all", "unread", "mentions", "directNotes"];
const tabs = ["all", "reactions", "mentions", "directNotes"];
const tab = ref(tabs[0]);
watch(tab, () => syncSlide(tabs.indexOf(tab.value)));
@ -149,9 +149,9 @@ const headerTabs = computed(() => [
icon: `${icon("ph-bell")}`,
},
{
key: "unread",
title: i18n.ts.unread,
icon: `${icon("ph-circle-wavy-warning")}`,
key: "reactions",
title: i18n.ts.reaction,
icon: `${icon("ph-smiley")}`,
},
{
key: "mentions",