mirror of
https://github.com/zadam/trilium.git
synced 2025-12-04 14:34:24 +01:00
do not activate collections tab for mobile
This commit is contained in:
parent
9c86145ff8
commit
6c1886c5ca
@ -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();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user