mirror of
https://github.com/zadam/trilium.git
synced 2025-10-21 07:38:53 +02:00
client/quick search results: tweak the busy indicator
This commit is contained in:
parent
d73e84ea6c
commit
48faa8a813
@ -110,6 +110,10 @@ const TPL = /*html*/`
|
|||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.quick-search .bx-loader {
|
||||||
|
margin-inline-end: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<div class="input-group-prepend">
|
<div class="input-group-prepend">
|
||||||
@ -224,7 +228,11 @@ export default class QuickSearchWidget extends BasicWidget {
|
|||||||
this.isLoadingMore = false;
|
this.isLoadingMore = false;
|
||||||
|
|
||||||
this.$dropdownMenu.empty();
|
this.$dropdownMenu.empty();
|
||||||
this.$dropdownMenu.append(`<span class="dropdown-item disabled"><span class="bx bx-loader bx-spin"></span>${t("quick-search.searching")}</span>`);
|
this.$dropdownMenu.append(`
|
||||||
|
<span class="dropdown-item disabled">
|
||||||
|
<span class="bx bx-loader bx-spin"></span>
|
||||||
|
${t("quick-search.searching")}
|
||||||
|
</span>`);
|
||||||
|
|
||||||
const { searchResultNoteIds, searchResults, error } = await server.get<QuickSearchResponse>(`quick-search/${encodeURIComponent(searchString)}`);
|
const { searchResultNoteIds, searchResults, error } = await server.get<QuickSearchResponse>(`quick-search/${encodeURIComponent(searchString)}`);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user