feat(views/table): disable reordering in search

This commit is contained in:
Elian Doran 2025-07-04 20:43:16 +03:00
parent 0f7a2adf15
commit 63537aff20
No known key found for this signature in database

View File

@ -3,7 +3,8 @@ import type FNote from "../../../entities/fnote.js";
import branches from "../../../services/branches.js";
export function canReorderRows(parentNote: FNote) {
return !parentNote.hasLabel("sorted");
return !parentNote.hasLabel("sorted")
&& parentNote.type !== "search";
}
export function configureReorderingRows(tabulator: Tabulator) {