feat: support showing who favorited and boosted a status (#881)
This commit is contained in:
parent
19e4aa4ada
commit
7e191d7296
5 changed files with 91 additions and 0 deletions
|
@ -22,9 +22,12 @@ export const isEditHistoryDialogOpen = ref(false)
|
|||
export const isPreviewHelpOpen = ref(isFirstVisit.value)
|
||||
export const isCommandPanelOpen = ref(false)
|
||||
export const isConfirmDialogOpen = ref(false)
|
||||
export const isFavouritedBoostedByDialogOpen = ref(false)
|
||||
|
||||
export const lastPublishDialogStatus = ref<mastodon.v1.Status | null>(null)
|
||||
|
||||
export const favouritedBoostedByStatusId = ref<string | null>(null)
|
||||
|
||||
export function openSigninDialog() {
|
||||
isSigninDialogOpen.value = true
|
||||
}
|
||||
|
@ -62,6 +65,11 @@ export async function openPublishDialog(draftKey = 'dialog', draft?: Draft, over
|
|||
await until(isPublishDialogOpen).toBe(false)
|
||||
}
|
||||
|
||||
export async function openFavoridedBoostedByDialog(statusId: string) {
|
||||
isFavouritedBoostedByDialogOpen.value = true
|
||||
favouritedBoostedByStatusId.value = statusId
|
||||
}
|
||||
|
||||
if (isPreviewHelpOpen.value) {
|
||||
watch(isPreviewHelpOpen, () => {
|
||||
isFirstVisit.value = false
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue