From 89728d8a9a9fd9b888deb78f420dd5758ee63909 Mon Sep 17 00:00:00 2001 From: Simon Huber Date: Sun, 13 Oct 2019 17:53:40 +0200 Subject: [PATCH] Make tag-picker add-tag button more consistent II (#4313) * Update tag-picker.tid * Update tags.tid * Update tag-picker.tid --- core/ui/EditTemplate/tags.tid | 12 ++---------- core/wiki/macros/tag-picker.tid | 8 +++----- 2 files changed, 5 insertions(+), 15 deletions(-) diff --git a/core/ui/EditTemplate/tags.tid b/core/ui/EditTemplate/tags.tid index d368ce491..665516b7b 100644 --- a/core/ui/EditTemplate/tags.tid +++ b/core/ui/EditTemplate/tags.tid @@ -25,21 +25,13 @@ color:$(foregroundColor)$; <$macrocall $name="tag-body-inner" colour="""$colour$""" fallbackTarget={{$palette$##tag-background}} colourA={{$palette$##foreground}} colourB={{$palette$##background}} icon="""$icon$"""/> \end -\define tag-picker-actions() -<$action-listops - $tiddler=<> - $field="tags" - $subfilter="[] [all[current]tags[]]" -/> -\end -
<$fieldmangler> <$list filter="[all[current]tags[]sort[title]]" storyview="pop"> <$macrocall $name="tag-body" colour={{!!color}} palette={{$:/palette}} icon={{!!icon}}/> - <$set name="tabIndex" value={{$:/config/EditTabIndex}}> -<$macrocall $name="tag-picker" actions=<>/> +<$macrocall $name="tag-picker"/> +
diff --git a/core/wiki/macros/tag-picker.tid b/core/wiki/macros/tag-picker.tid index 8d58748f2..2d36b2eb3 100644 --- a/core/wiki/macros/tag-picker.tid +++ b/core/wiki/macros/tag-picker.tid @@ -8,14 +8,13 @@ tags: $:/tags/Macro \define tag-button() <$button class="tc-btn-invisible" tag="a" tooltip={{$:/language/EditTemplate/Tags/Add/Button/Hint}}> -$(actions)$ +<$action-sendmessage $message="tm-add-tag" $param=<>/> <$action-deletetiddler $tiddler="$:/temp/NewTagName"/> <$macrocall $name="tag-pill" tag=<>/> \end -\define tag-picker(actions) -<$set name="actions" value="""$actions$"""> +\define tag-picker()
<$keyboard key="ENTER" actions=<>> @@ -24,7 +23,7 @@ $(actions)$ <$button popup=<> class="tc-btn-invisible" tooltip={{$:/language/EditTemplate/Tags/Dropdown/Hint}} aria-label={{$:/language/EditTemplate/Tags/Dropdown/Caption}}>{{$:/core/images/down-arrow}} <$set name="tag" value={{$:/temp/NewTagName}}> <$button set="$:/temp/NewTagName" setTo="" class=""> -$actions$ +<> <$action-deletetiddler $tiddler="$:/temp/NewTagName"/> {{$:/language/EditTemplate/Tags/Add/Button}} @@ -46,5 +45,4 @@ $actions$
- \end