2021-01-24 22:30:53 +01:00
|
|
|
import AbstractSearchOption from "./abstract_search_option.js";
|
2024-08-07 10:16:27 +08:00
|
|
|
import { t } from "../../services/i18n.js";
|
2021-01-24 22:30:53 +01:00
|
|
|
|
2025-04-01 23:24:21 +03:00
|
|
|
const TPL = /*html*/`
|
2021-01-24 22:30:53 +01:00
|
|
|
<tr data-search-option-conf="fastSearch">
|
|
|
|
|
<td colSpan="2">
|
|
|
|
|
<span class="bx bx-run"></span>
|
2025-01-09 18:07:02 +02:00
|
|
|
${t("fast_search.fast_search")}
|
2021-01-24 22:30:53 +01:00
|
|
|
</td>
|
2021-01-26 14:10:34 +01:00
|
|
|
<td class="button-column">
|
2021-02-13 23:38:31 +01:00
|
|
|
<div class="dropdown help-dropdown">
|
2024-09-03 17:08:07 +02:00
|
|
|
<span class="bx bx-help-circle icon-action" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false"></span>
|
2021-02-13 23:38:31 +01:00
|
|
|
<div class="dropdown-menu dropdown-menu-right p-4">
|
2025-01-09 18:07:02 +02:00
|
|
|
${t("fast_search.description")}
|
2025-02-11 19:16:11 +02:00
|
|
|
</div>
|
2021-02-13 23:38:31 +01:00
|
|
|
</div>
|
2021-01-26 10:42:55 +01:00
|
|
|
<span class="bx bx-x icon-action search-option-del"></span>
|
2021-01-24 22:30:53 +01:00
|
|
|
</td>
|
|
|
|
|
</tr>`;
|
|
|
|
|
|
|
|
|
|
export default class FastSearch extends AbstractSearchOption {
|
|
|
|
|
|
2025-02-11 19:16:11 +02:00
|
|
|
static async create(noteId: string) {
|
2025-01-09 18:07:02 +02:00
|
|
|
await AbstractSearchOption.setAttribute(noteId, "label", "fastSearch");
|
2021-01-24 22:30:53 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
doRender() {
|
|
|
|
|
return $(TPL);
|
|
|
|
|
}
|
|
|
|
|
}
|