In the list of notes it shows 'Note #' when the title is empty

This commit is contained in:
Matias De lellis
2022-05-18 22:12:30 -03:00
parent dd1382ae71
commit 44e4cd7125
2 changed files with 8 additions and 1 deletions

View File

@@ -1231,6 +1231,9 @@ Handlebars.registerHelper('tSB', function(user) {
return t('quicknotes', 'Shared by {user}', {user: user});
});
Handlebars.registerHelper('tNN', function(number) {
return t('quicknotes', 'Note {number}', {number: number});
});
/*
* Create modules

View File

@@ -49,7 +49,11 @@
<ul>
{{#each notes}}
<li class="nav-note with-menu {{#if active}}active{{/if}}" data-id="{{ id }}">
{{#if title}}
<a href="#">{{{ title }}}</a>
{{else}}
<a href="#">{{tNN id}}</a>
{{/if}}
</li>
{{/each}}
</ul>