mirror of
https://github.com/zadam/trilium.git
synced 2025-06-06 18:08:33 +02:00
display last noteId in the note path widget as well
This commit is contained in:
parent
9c04ef9fb7
commit
1175a8ee49
@ -56,7 +56,9 @@ class BasicWidget extends Component {
|
|||||||
|
|
||||||
for (const key in this.attrs) {
|
for (const key in this.attrs) {
|
||||||
if (key === 'style') {
|
if (key === 'style') {
|
||||||
$widget.attr(key, $widget.attr('style') + ';' + this.attrs[key]);
|
if (this.attrs[key]) {
|
||||||
|
$widget.attr(key, $widget.attr('style') + ';' + this.attrs[key]);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$widget.attr(key, this.attrs[key]);
|
$widget.attr(key, this.attrs[key]);
|
||||||
|
@ -61,8 +61,7 @@ export default class NotePathsWidget extends TabAwareWidget {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async refreshWithNote(note, notePath) {
|
async refreshWithNote(note, notePath) {
|
||||||
let noteIdsPath = treeService.parseNotePath(notePath);
|
const noteIdsPath = treeService.parseNotePath(notePath);
|
||||||
noteIdsPath = noteIdsPath.slice(0, noteIdsPath.length - 1);
|
|
||||||
|
|
||||||
this.$currentPath.empty();
|
this.$currentPath.empty();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user