mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
path list contains a button to add a new path, closes #611
This commit is contained in:
parent
5552917533
commit
f31a998c5d
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user