mobile layout fixes + fix mobile delete note

This commit is contained in:
zadam
2020-09-13 21:12:22 +02:00
parent 37602cfcae
commit 1e1709ca6a
6 changed files with 32 additions and 13 deletions

View File

@@ -158,6 +158,12 @@ function getNoteIdFromNotePath(notePath) {
return lastSegment.split("-")[0];
}
async function getBranchIdFromNotePath(notePath) {
const {noteId, parentNoteId} = getNoteIdAndParentIdFromNotePath(notePath);
return await treeCache.getBranchId(parentNoteId, noteId);
}
function getNoteIdAndParentIdFromNotePath(notePath) {
if (notePath === 'root') {
return {
@@ -185,7 +191,7 @@ function getNoteIdAndParentIdFromNotePath(notePath) {
return {
parentNoteId,
noteId
}
};
}
function getNotePath(node) {
@@ -286,6 +292,7 @@ export default {
getNotePath,
getNoteIdFromNotePath,
getNoteIdAndParentIdFromNotePath,
getBranchIdFromNotePath,
getNoteTitle,
getNotePathTitle,
getHashValueFromAddress,