mirror of
https://github.com/zadam/trilium.git
synced 2025-06-06 18:08:33 +02:00
making dialogs wider to accompany deeper hierarchies. Recent changes now display full path of the note
This commit is contained in:
parent
a363b43c2b
commit
4a4228cd03
@ -91,7 +91,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="recent-notes-dialog" title="Recent notes" style="display: none;">
|
<div id="recent-notes-dialog" title="Recent notes" style="display: none;">
|
||||||
<select id="recent-notes-select-box" size="15" style="width: 100%">
|
<select id="recent-notes-select-box" size="20" style="width: 100%">
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<br/><br/>
|
<br/><br/>
|
||||||
|
@ -3,7 +3,7 @@ function showJumpToNote() {
|
|||||||
|
|
||||||
$("#jump-to-note-dialog").dialog({
|
$("#jump-to-note-dialog").dialog({
|
||||||
modal: true,
|
modal: true,
|
||||||
width: 500
|
width: 800
|
||||||
});
|
});
|
||||||
|
|
||||||
$("#jump-to-note-autocomplete").autocomplete({
|
$("#jump-to-note-autocomplete").autocomplete({
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
function showRecentChanges() {
|
function showRecentChanges() {
|
||||||
$("#recent-changes-dialog").dialog({
|
$("#recent-changes-dialog").dialog({
|
||||||
modal: true,
|
modal: true,
|
||||||
width: 400,
|
width: 800,
|
||||||
height: 700
|
height: 700
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -13,13 +13,11 @@ function showRecentChanges() {
|
|||||||
const dayCache = {};
|
const dayCache = {};
|
||||||
|
|
||||||
for (const row of result) {
|
for (const row of result) {
|
||||||
if (row.encryption > 0) {
|
if (row.encryption > 0 && !isEncryptionAvailable()) {
|
||||||
if (isEncryptionAvailable()) {
|
|
||||||
row.note_title = decryptString(row.note_title);
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
row.note_title = "[encrypted]";
|
row.note_title = "[encrypted]";
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
row.note_title = getFullName(row.note_id);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -17,7 +17,7 @@ function showRecentNotes() {
|
|||||||
|
|
||||||
$("#recent-notes-dialog").dialog({
|
$("#recent-notes-dialog").dialog({
|
||||||
modal: true,
|
modal: true,
|
||||||
width: 500
|
width: 800
|
||||||
});
|
});
|
||||||
|
|
||||||
let recentNotesSelectBox = $('#recent-notes-select-box');
|
let recentNotesSelectBox = $('#recent-notes-select-box');
|
||||||
|
@ -28,6 +28,10 @@ function getNoteTitle(noteId) {
|
|||||||
function getFullName(noteId) {
|
function getFullName(noteId) {
|
||||||
let note = getNodeByKey(noteId);
|
let note = getNodeByKey(noteId);
|
||||||
|
|
||||||
|
if (note === null) {
|
||||||
|
return "[unknown]";
|
||||||
|
}
|
||||||
|
|
||||||
if (note.data.is_clone || (note.data.encryption > 0 && !isEncryptionAvailable())) {
|
if (note.data.is_clone || (note.data.encryption > 0 && !isEncryptionAvailable())) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user