(fleeting notes) init fleeting notes

This commit is contained in:
2021-03-20 22:00:37 +01:00
parent a8cc196508
commit 11d25e25af
9 changed files with 112 additions and 37 deletions

View File

@@ -28,11 +28,10 @@ export const useNote = (
user: Ref<string>,
repo: Ref<string>
) => {
const { push } = useRouter()
const { push, currentRoute } = useRouter()
const { isMobile } = useOverlay(false)
const { scrollToFocusedNote } = useFocus()
const { stackedNotes, updateQueryStackedNotes } = useQueryStackedNotes()
const { readme, notFound, tree } = useRepo(user, repo)
const { listenToClick } = useLinks('note-display')
@@ -102,7 +101,7 @@ export const useNote = (
const newStackedNotes = getStackedNotes()
push({
name: 'Home',
name: currentRoute.value.name ?? 'Home',
params: {
user: user.value,
repo: repo.value