1
0
Fork 0
mirror of https://github.com/elk-zone/elk.git synced 2025-05-10 09:14:17 +03:00

feat: disable SSR

This commit is contained in:
Anthony Fu 2022-11-23 07:08:36 +08:00
parent e59b3e5db2
commit a6578155ae
29 changed files with 109 additions and 175 deletions
components/status

View file

@ -5,8 +5,6 @@ const { status } = defineProps<{
status: Status
}>()
const masto = await useMasto()
// Use different states to let the user press different actions right after the other
const isLoading = $ref({ reblogged: false, favourited: false, bookmarked: false })
async function toggleStatusAction(action: 'reblogged' | 'favourited' | 'bookmarked', newStatus: Promise<Status>) {