do not activate collections tab for mobile

This commit is contained in:
contributor 2025-11-22 21:30:20 +02:00
parent 9c86145ff8
commit 6c1886c5ca

View File

@ -22,7 +22,7 @@ import RenameNoteBulkAction from "../bulk_actions/note/rename_note";
import { getErrorMessage } from "../../services/utils";
import "./SearchDefinitionTab.css";
export default function SearchDefinitionTab({ note, ntxId, hidden }: TabContext) {
export default function SearchDefinitionTab({ note, ntxId, hidden, noteContext }: TabContext) {
const parentComponent = useContext(ParentComponent);
const [ searchOptions, setSearchOptions ] = useState<{ availableOptions: SearchOption[], activeOptions: SearchOption[] }>();
const [ error, setError ] = useState<{ message: string }>();
@ -94,7 +94,9 @@ export default function SearchDefinitionTab({ note, ntxId, hidden }: TabContext)
await refreshResults();
parentComponent?.triggerCommand("toggleRibbonTabBookProperties", {});
if (noteContext?.viewScope?.viewMode === "default") {
parentComponent?.triggerCommand("toggleRibbonTabBookProperties", {});
}
}
}
autoExecute();