mirror of
https://github.com/zadam/trilium.git
synced 2025-06-06 09:58:32 +02:00
added also "sqlConsoleHome"
This commit is contained in:
parent
4078b32e9d
commit
16c4b8aa43
@ -42,10 +42,12 @@ function getDateNotesForMonth(req) {
|
||||
function createSqlConsole() {
|
||||
const today = dateUtils.localNowDate();
|
||||
|
||||
const todayNote = dateNoteService.getDateNote(today);
|
||||
const sqlConsoleHome =
|
||||
attributeService.getNoteWithLabel('sqlConsoleHome')
|
||||
|| dateNoteService.getDateNote(today);
|
||||
|
||||
const {note} = noteService.createNewNote({
|
||||
parentNoteId: todayNote.noteId,
|
||||
parentNoteId: sqlConsoleHome.noteId,
|
||||
title: 'SQL Console',
|
||||
content: "SELECT title, isDeleted, isProtected FROM notes WHERE noteId = ''\n\n\n\n",
|
||||
type: 'code',
|
||||
|
@ -37,6 +37,7 @@ const BUILTIN_ATTRIBUTES = [
|
||||
{ type: 'label', name: 'workspaceIconClass' },
|
||||
{ type: 'label', name: 'workspaceTabBackgroundColor' },
|
||||
{ type: 'label', name: 'searchHome' },
|
||||
{ type: 'label', name: 'sqlConsoleHome' },
|
||||
|
||||
// relation names
|
||||
{ type: 'relation', name: 'runOnNoteCreation', isDangerous: true },
|
||||
|
Loading…
x
Reference in New Issue
Block a user