Implement the option to sort the notes. Issue #85

This commit is contained in:
Matias De lellis
2023-06-14 22:42:06 -03:00
parent 8bff0fb364
commit 47a9bdacf2
4 changed files with 56 additions and 9 deletions

View File

@@ -1,5 +1,5 @@
<div class="note-grid-item">
<div class="quicknote noselect {{#if sharedBy.length}}shared{{/if}} {{#if sharedWith.length}}shareowner{{/if}}" style="background-color: {{color}}" data-id="{{ id }}" data-timestamp="{{ timestamp }}" >
<div class="quicknote noselect {{#if sharedBy.length}}shared{{/if}} {{#if sharedWith.length}}shareowner{{/if}}" style="background-color: {{color}}" data-id="{{ id }}" data-pinned={{#if isPinned}}1{{else}}0{{/if}} data-timestamp="{{ timestamp }}" >
<div class='note-header'>
<div class='note-attachts'>
{{#each attachments}}

View File

@@ -2,7 +2,7 @@
<div id="notes-grid-div" class="notes-grid">
{{#each notes}}
<div class="note-grid-item">
<div class="quicknote noselect {{#if sharedBy.length}}shared{{/if}} {{#if sharedWith.length}}shareowner{{/if}}" style="background-color: {{color}}" data-id="{{ id }}" data-timestamp="{{ timestamp }}" >
<div class="quicknote noselect {{#if sharedBy.length}}shared{{/if}} {{#if sharedWith.length}}shareowner{{/if}}" style="background-color: {{color}}" data-id="{{ id }}" data-pinned={{#if isPinned}}1{{else}}0{{/if}} data-timestamp="{{ timestamp }}" >
<div class='note-header'>
<div class='note-attachts'>
{{#each attachments}}

View File

@@ -2,6 +2,14 @@
<input id="explicit-save-notes" type="checkbox" class="checkbox">
<label for="explicit-save-notes">{{t "quicknotes" "When editing notes, show Save and Cancel buttons to save them explicitly"}}</label>
</p>
<div>
<label for="sort-select">{{t "quicknotes" "Sort by:"}}</label>
<select name="sort-select" id="sort-select">
<option value="title">{{t "quicknotes" "Title"}}</option>
<option value="created">{{t "quicknotes" "Newest first"}}</option>
<option value="updated">{{t "quicknotes" "Updated first"}}</option>
</select>
</div>
<div>
<label>{{t "quicknotes" "Default color for new notes"}}</label>
</div>