mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-08-10 02:02:29 +08:00
fix LBTPL_NOTE_LAUNCHER name
asdf
This commit is contained in:
parent
229a29d1cb
commit
75601814d4
@ -14,7 +14,7 @@ import buildLaunchBarConfig from "./hidden_subtree_launcherbar.js";
|
||||
const LBTPL_ROOT = "_lbTplRoot";
|
||||
const LBTPL_BASE = "_lbTplBase";
|
||||
const LBTPL_HEADER = "_lbTplHeader";
|
||||
const LBTPL_NOTE = "_lbTplLauncherNote";
|
||||
const LBTPL_NOTE_LAUNCHER = "_lbTplLauncherNote";
|
||||
const LBTPL_WIDGET = "_lbTplLauncherWidget";
|
||||
const LBTPL_COMMAND = "_lbTplLauncherCommand";
|
||||
const LBTPL_SCRIPT = "_lbTplLauncherScript";
|
||||
@ -160,7 +160,7 @@ function buildHiddenSubtreeDefinition(helpSubtree: HiddenSubtreeItem[]): HiddenS
|
||||
]
|
||||
},
|
||||
{
|
||||
id: LBTPL_NOTE,
|
||||
id: LBTPL_NOTE_LAUNCHER,
|
||||
title: t("hidden-subtree.note-launcher-title"),
|
||||
type: "doc",
|
||||
attributes: [
|
||||
@ -381,7 +381,7 @@ function checkHiddenSubtreeRecursively(parentNoteId: string, item: HiddenSubtree
|
||||
|
||||
attrs.push({ type: "label", name: "builtinWidget", value: item.builtinWidget });
|
||||
} else if (item.targetNoteId) {
|
||||
attrs.push({ type: "relation", name: "template", value: LBTPL_NOTE });
|
||||
attrs.push({ type: "relation", name: "template", value: LBTPL_NOTE_LAUNCHER });
|
||||
attrs.push({ type: "relation", name: "target", value: item.targetNoteId });
|
||||
} else {
|
||||
throw new Error(`No action defined for launcher ${JSON.stringify(item)}`);
|
||||
@ -446,7 +446,7 @@ export default {
|
||||
LBTPL_ROOT,
|
||||
LBTPL_BASE,
|
||||
LBTPL_COMMAND,
|
||||
LBTPL_NOTE,
|
||||
LBTPL_NOTE_LAUNCHER,
|
||||
LBTPL_WIDGET,
|
||||
LBTPL_SCRIPT,
|
||||
LBTPL_SPACER,
|
||||
|
@ -9,7 +9,7 @@ import searchService from "./search/services/search.js";
|
||||
import SearchContext from "./search/search_context.js";
|
||||
import hiddenSubtree from "./hidden_subtree.js";
|
||||
import { t } from "i18next";
|
||||
const { LBTPL_NOTE, LBTPL_CUSTOM_WIDGET, LBTPL_SPACER, LBTPL_SCRIPT } = hiddenSubtree;
|
||||
const { LBTPL_NOTE_LAUNCHER, LBTPL_CUSTOM_WIDGET, LBTPL_SPACER, LBTPL_SCRIPT } = hiddenSubtree;
|
||||
|
||||
function getInboxNote(date: string) {
|
||||
const workspaceNote = hoistedNoteService.getWorkspaceNote();
|
||||
@ -176,7 +176,7 @@ function createLauncher({ parentNoteId, launcherType, noteId }: LauncherConfig)
|
||||
parentNoteId: parentNoteId
|
||||
}).note;
|
||||
|
||||
note.addRelation("template", LBTPL_NOTE);
|
||||
note.addRelation("template", LBTPL_NOTE_LAUNCHER);
|
||||
} else if (launcherType === "script") {
|
||||
note = createScriptLauncher(parentNoteId, noteId);
|
||||
} else if (launcherType === "customWidget") {
|
||||
|
Loading…
x
Reference in New Issue
Block a user