mirror of
https://github.com/zadam/trilium.git
synced 2025-06-06 18:08:33 +02:00
27 lines
726 B
JavaScript
27 lines
726 B
JavaScript
import AbstractSearchOption from "./abstract_search_option.js";
|
|
|
|
const TPL = `
|
|
<tr data-search-option-conf="includeArchivedNotes">
|
|
<td colspan="2">
|
|
<span class="bx bx-archive"></span>
|
|
|
|
Include archived notes
|
|
</td>
|
|
<td class="button-column">
|
|
<span class="bx bx-x icon-action search-option-del"></span>
|
|
</td>
|
|
</tr>`;
|
|
|
|
export default class IncludeArchivedNotes extends AbstractSearchOption {
|
|
static get optionName() { return "includeArchivedNotes" };
|
|
static get attributeType() { return "label" };
|
|
|
|
static async create(noteId) {
|
|
await AbstractSearchOption.setAttribute(noteId,'label', 'includeArchivedNotes');
|
|
}
|
|
|
|
doRender() {
|
|
return $(TPL);
|
|
}
|
|
}
|