mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-27 03:57:21 +00:00
Fix confusing empty message in tag dropdown (#8649)
This commit is contained in:
parent
bb75560922
commit
2a77d6afdf
@ -26,7 +26,8 @@ Tags/ClearInput/Caption: clear input
|
|||||||
Tags/ClearInput/Hint: Clear tag input
|
Tags/ClearInput/Hint: Clear tag input
|
||||||
Tags/Dropdown/Caption: tag list
|
Tags/Dropdown/Caption: tag list
|
||||||
Tags/Dropdown/Hint: Show tag list
|
Tags/Dropdown/Hint: Show tag list
|
||||||
Tags/EmptyMessage: (no search result)
|
Tags/EmptyMessage: No tags found
|
||||||
|
Tags/EmptyMessage/System: No system tags found
|
||||||
Title/BadCharacterWarning: Warning: avoid using any of the characters <<bad-chars>> in tiddler titles
|
Title/BadCharacterWarning: Warning: avoid using any of the characters <<bad-chars>> in tiddler titles
|
||||||
Title/Exists/Prompt: Target tiddler already exists
|
Title/Exists/Prompt: Target tiddler already exists
|
||||||
Title/Relink/Prompt: Update ''<$text text=<<fromTitle>>/>'' to ''<$text text=<<toTitle>>/>'' in the //tags// and //list// fields of other tiddlers
|
Title/Relink/Prompt: Update ''<$text text=<<fromTitle>>/>'' to ''<$text text=<<toTitle>>/>'' in the //tags// and //list// fields of other tiddlers
|
||||||
|
@ -77,14 +77,14 @@ The second ESC tries to close the "draft tiddler"
|
|||||||
<!-- <$action-log /> -->
|
<!-- <$action-log /> -->
|
||||||
|
|
||||||
<!-- create dropdown list -->
|
<!-- create dropdown list -->
|
||||||
\procedure tag-picker-listTags(filter, suffix)
|
\procedure tag-picker-listTags(filter, suffix, empty)
|
||||||
<$let userInput=<<_tf.getUserInput>> >
|
<$let userInput=<<_tf.getUserInput>> >
|
||||||
<$list filter="[<userInput>minlength{$:/config/Tags/MinLength}limit[1]]"
|
<$list filter="[<userInput>minlength{$:/config/Tags/MinLength}limit[1]]"
|
||||||
emptyMessage="<div class='tc-search-results'>{{$:/language/Search/Search/TooShort}}</div>" variable="listItem"
|
emptyMessage="<div class='tc-search-results'>{{$:/language/Search/Search/TooShort}}</div>" variable="listItem"
|
||||||
>
|
>
|
||||||
<$list filter=<<filter>> variable="tag">
|
<$list filter=<<filter>> variable="tag">
|
||||||
<$list-empty>
|
<$list-empty>
|
||||||
<span class="tc-small-gap-left">{{$:/language/EditTemplate/Tags/EmptyMessage}}</span>
|
<span class="tc-small-gap-left"><<empty>></span>
|
||||||
</$list-empty>
|
</$list-empty>
|
||||||
<!-- The buttonClasses filter is used to define tc-tag-button-selected state -->
|
<!-- The buttonClasses filter is used to define tc-tag-button-selected state -->
|
||||||
<!-- tf.get-tagpicker-focus-selector has to be resolved for $:/core/ui/TagPickerTagTemplate,
|
<!-- tf.get-tagpicker-focus-selector has to be resolved for $:/core/ui/TagPickerTagTemplate,
|
||||||
@ -146,9 +146,9 @@ The second ESC tries to close the "draft tiddler"
|
|||||||
<div class="tc-block-dropdown-wrapper">
|
<div class="tc-block-dropdown-wrapper">
|
||||||
<%if [<tf.tagpicker-dropdown-id>has[text]] %>
|
<%if [<tf.tagpicker-dropdown-id>has[text]] %>
|
||||||
<div class="tc-block-dropdown tc-block-tags-dropdown">
|
<div class="tc-block-dropdown tc-block-tags-dropdown">
|
||||||
<$macrocall $name="tag-picker-listTags" filter=<<nonSystemTagsFilter>> suffix="-primaryList" />
|
<$macrocall $name="tag-picker-listTags" filter=<<nonSystemTagsFilter>> suffix="-primaryList" empty={{$:/language/EditTemplate/Tags/EmptyMessage}}/>
|
||||||
<hr>
|
<hr>
|
||||||
<$macrocall $name="tag-picker-listTags" filter=<<systemTagsFilter>> suffix="-secondaryList" />
|
<$macrocall $name="tag-picker-listTags" filter=<<systemTagsFilter>> suffix="-secondaryList" empty={{$:/language/EditTemplate/Tags/EmptyMessage/System}}/>
|
||||||
</div>
|
</div>
|
||||||
<%endif%>
|
<%endif%>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user