mirror of
https://github.com/elk-zone/elk.git
synced 2024-11-19 07:19:58 +00:00
ui: navbar for status detail
This commit is contained in:
parent
83c0fafbec
commit
9485830da2
1 changed files with 25 additions and 23 deletions
|
@ -10,30 +10,32 @@ const { data: context } = useAsyncData(`context:${id}`, () => masto.statuses.fet
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<template v-if="status">
|
<MainContent>
|
||||||
<template v-if="context">
|
<template v-if="status">
|
||||||
<template v-for="comment of context?.ancestors" :key="comment.id">
|
<template v-if="context">
|
||||||
<StatusCard :status="comment" border="t base" py3 />
|
<template v-for="comment of context?.ancestors" :key="comment.id">
|
||||||
|
<StatusCard :status="comment" border="t base" py3 />
|
||||||
|
</template>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<StatusDetails ref="main" :status="status" border="t base" />
|
||||||
|
<PublishWidget
|
||||||
|
v-if="currentUser"
|
||||||
|
border="t base"
|
||||||
|
:draft-key="`reply-${id}`"
|
||||||
|
:placeholder="`Reply to ${status?.account ? getDisplayName(status?.account) : 'this thread'}`"
|
||||||
|
:in-reply-to-id="id"
|
||||||
|
/>
|
||||||
|
|
||||||
|
<template v-if="context">
|
||||||
|
<template v-for="comment of context?.descendants" :key="comment.id">
|
||||||
|
<StatusCard :status="comment" border="t base" py3 />
|
||||||
|
</template>
|
||||||
</template>
|
</template>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<StatusDetails ref="main" :status="status" border="t base" />
|
<CommonNotFound v-else>
|
||||||
<PublishWidget
|
Status not found
|
||||||
v-if="currentUser"
|
</CommonNotFound>
|
||||||
border="t base"
|
</MainContent>
|
||||||
:draft-key="`reply-${id}`"
|
|
||||||
:placeholder="`Reply to ${status?.account ? getDisplayName(status?.account) : 'this thread'}`"
|
|
||||||
:in-reply-to-id="id"
|
|
||||||
/>
|
|
||||||
|
|
||||||
<template v-if="context">
|
|
||||||
<template v-for="comment of context?.descendants" :key="comment.id">
|
|
||||||
<StatusCard :status="comment" border="t base" py3 />
|
|
||||||
</template>
|
|
||||||
</template>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<CommonNotFound v-else>
|
|
||||||
Status not found
|
|
||||||
</CommonNotFound>
|
|
||||||
</template>
|
</template>
|
||||||
|
|
Loading…
Reference in a new issue