path list contains a button to add a new path, closes #611

This commit is contained in:
zadam
2019-12-21 13:55:13 +01:00
parent 5552917533
commit f31a998c5d
2 changed files with 11 additions and 1 deletions

View File

@@ -411,6 +411,16 @@ class TabContext {
await this.addPath(notePath, isCurrent);
}
const cloneLink = $("<div>")
.addClass("dropdown-item")
.append(
$('<button class="btn btn-sm">')
.text('Clone note to new location...')
.on('click', () => import("../dialogs/clone_to.js").then(d => d.showDialog([this.note.noteId])))
);
this.$notePathList.append(cloneLink);
}
}