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); 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);
} }
} }

View File

@ -333,7 +333,7 @@ div.ui-tooltip {
color: #888 !important; color: #888 !important;
} }
.dropdown-menu a:hover:not(.disabled), li.dropdown-item:hover:not(.disabled) { .dropdown-menu a:hover:not(.disabled), li.dropdown-item:hover:not(.disabled), div.dropdown-item:hover:not(.disabled) {
color: var(--hover-item-text-color) !important; color: var(--hover-item-text-color) !important;
background-color: var(--hover-item-background-color) !important; background-color: var(--hover-item-background-color) !important;
cursor: pointer; cursor: pointer;