mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-09-18 17:31:53 +08:00
feat(mobile): render mobile visible launchers
This commit is contained in:
parent
e45052cead
commit
65a14c62ac
@ -2,6 +2,7 @@ import FlexContainer from "./flex_container.js";
|
||||
import froca from "../../services/froca.js";
|
||||
import appContext, { EventData } from "../../components/app_context.js";
|
||||
import LauncherWidget from "./launcher.js";
|
||||
import utils from "../../services/utils.js";
|
||||
|
||||
export default class LauncherContainer extends FlexContainer {
|
||||
private isHorizontalLayout: boolean;
|
||||
@ -20,7 +21,8 @@ export default class LauncherContainer extends FlexContainer {
|
||||
async load() {
|
||||
await froca.initializedPromise;
|
||||
|
||||
const visibleLaunchersRoot = await froca.getNote('_lbVisibleLaunchers', true);
|
||||
const visibleLaunchersRootId = utils.isMobile() ? '_lbMobileVisibleLaunchers' : '_lbVisibleLaunchers';
|
||||
const visibleLaunchersRoot = await froca.getNote(visibleLaunchersRootId, true);
|
||||
|
||||
if (!visibleLaunchersRoot) {
|
||||
console.log("Visible launchers root note doesn't exist.");
|
||||
|
Loading…
x
Reference in New Issue
Block a user