Add mobile dropdown for plugin buttons (#1762)

* Add mobile toolbar buttons

* cleanup

* more cleanup

* Mobile plugin buttons: Add else block & change icon
This commit is contained in:
Patrick Moriarty
2021-03-18 15:09:08 -05:00
committed by GitHub
parent 6edc6e2825
commit eb437ff642
5 changed files with 36 additions and 9 deletions

View File

@@ -53,9 +53,14 @@ function getBundlesWithLabel(label, value) {
return bundles;
}
function getStartupBundles() {
function getStartupBundles(req) {
if (!process.env.TRILIUM_SAFE_MODE) {
return getBundlesWithLabel("run", "frontendStartup");
if (req.query.mobile === "true") {
return getBundlesWithLabel("run", "mobileStartup");
}
else {
return getBundlesWithLabel("run", "frontendStartup");
}
}
else {
return [];