From b95aa6ec6ad51672e9ed26ab94d7fe799698782c Mon Sep 17 00:00:00 2001 From: Jermolene Date: Thu, 10 May 2018 11:28:07 +0100 Subject: [PATCH] Fix problem with repeated "new journal" with text set Fixes problem whereby a repeated "new journal" would replace the text of the existing journal tiddler if the control panel new journal text was set. Fixes #3028 and #3265 --- core/ui/PageControls/new-journal.tid | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/core/ui/PageControls/new-journal.tid b/core/ui/PageControls/new-journal.tid index b197244b5..ee27d996d 100644 --- a/core/ui/PageControls/new-journal.tid +++ b/core/ui/PageControls/new-journal.tid @@ -6,7 +6,12 @@ description: {{$:/language/Buttons/NewJournal/Hint}} \define journalButton() <$button tooltip={{$:/language/Buttons/NewJournal/Hint}} aria-label={{$:/language/Buttons/NewJournal/Caption}} class=<>> <$wikify name="journalTitle" text="""<$macrocall $name="now" format=<>/>"""> +<$reveal type="nomatch" state=<> text=""> +<$action-sendmessage $message="tm-new-tiddler" title=<> tags=<> text={{{ [get[]] }}}/> + +<$reveal type="match" state=<> text=""> <$action-sendmessage $message="tm-new-tiddler" title=<> tags=<> text=<>/> + <$list filter="[prefix[yes]]"> {{$:/core/images/new-journal-button}}