chore: update lint
This commit is contained in:
parent
c7558ee7c5
commit
9465c2fe89
20 changed files with 164 additions and 124 deletions
|
@ -8,7 +8,7 @@ const { items } = defineProps<{
|
|||
const count = $computed(() => items.items.length)
|
||||
const isExpanded = ref(false)
|
||||
const lang = $computed(() => {
|
||||
return count > 1 || count === 0 ? undefined : items.items[0].status?.language
|
||||
return (count > 1 || count === 0) ? undefined : items.items[0].status?.language
|
||||
})
|
||||
</script>
|
||||
|
||||
|
|
|
@ -88,7 +88,11 @@ function groupItems(items: mastodon.v1.Notification[]): NotificationSlot[] {
|
|||
}
|
||||
like[notification.type === 'reblog' ? 'reblog' : 'favourite'] = notification
|
||||
}
|
||||
likes.sort((a, b) => a.reblog ? !b.reblog || (a.favourite && !b.favourite) ? -1 : 0 : 0)
|
||||
likes.sort((a, b) => a.reblog
|
||||
? (!b.reblog || (a.favourite && !b.favourite))
|
||||
? -1
|
||||
: 0
|
||||
: 0)
|
||||
results.push({
|
||||
id: `grouped-${id++}`,
|
||||
type: 'grouped-reblogs-and-favourites',
|
||||
|
|
|
@ -48,7 +48,7 @@ const saveSettings = async () => {
|
|||
animateSave = true
|
||||
|
||||
try {
|
||||
const subscription = await updateSubscription()
|
||||
await updateSubscription()
|
||||
}
|
||||
catch (err) {
|
||||
// todo: handle error
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue