diff options
author | bobzel <zzzman@gmail.com> | 2024-03-29 10:29:21 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2024-03-29 10:29:21 -0400 |
commit | ddaad0a2119dcb0dedf432aaff69abe5c92ac991 (patch) | |
tree | 0b3d756eecbb936939f04b66c2c372bb6d26cdbc /src/client/util/CurrentUserUtils.ts | |
parent | 0772ae0522be1fde19362ab7bb0808e13b4f382c (diff) |
enabled %<notestyle> to switch note types. fixed linking to top-level templates (postit, idea, etc). customized postit and idea style.
Diffstat (limited to 'src/client/util/CurrentUserUtils.ts')
-rw-r--r-- | src/client/util/CurrentUserUtils.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/client/util/CurrentUserUtils.ts b/src/client/util/CurrentUserUtils.ts index f4599f04a..331b8d515 100644 --- a/src/client/util/CurrentUserUtils.ts +++ b/src/client/util/CurrentUserUtils.ts @@ -121,9 +121,9 @@ export class CurrentUserUtils { static setupNoteTemplates(doc: Doc, field="template_notes") { const tempNotes = DocCast(doc[field]); const reqdTempOpts:DocumentOptions[] = [ - { title: "Postit", backgroundColor: "yellow", icon: "sticky-note"}, - { title: "Idea", backgroundColor: "pink", icon: "lightbulb" }, - { title: "Topic", backgroundColor: "lightblue", icon: "book-open" }]; + { title: "Postit", backgroundColor: "yellow", icon: "sticky-note", _layout_showTitle: "title", layout_borderRounding: "5px"}, + { title: "Idea", backgroundColor: "pink", icon: "lightbulb" , _layout_showTitle: "title"}, + { title: "Topic", backgroundColor: "lightblue", icon: "book-open" , _layout_showTitle: "title"}]; const reqdNoteList = [...reqdTempOpts.map(opts => { const reqdOpts = {...opts, isSystem:true, width:200, layout_autoHeight: true, layout_fitWidth: true}; const noteTemp = tempNotes ? DocListCast(tempNotes.data).find(doc => doc.title === opts.title): undefined; |