feat(ui): opening the details page with the reply button (#840)
This commit is contained in:
parent
6a78f9c9e3
commit
2ff46bb8cb
2 changed files with 9 additions and 6 deletions
|
@ -24,13 +24,11 @@ const { formatHumanReadableNumber, formatNumber, forSR } = useHumanReadableNumbe
|
|||
const reply = () => {
|
||||
if (!checkLogin())
|
||||
return
|
||||
if (details) {
|
||||
if (details)
|
||||
focusEditor()
|
||||
}
|
||||
else {
|
||||
const { key, draft } = getReplyDraft(status)
|
||||
openPublishDialog(key, draft())
|
||||
}
|
||||
|
||||
else
|
||||
navigateTo({ path: getStatusRoute(status).href, state: { focusReply: true } })
|
||||
}
|
||||
</script>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue