Use match operator instead of prefix

Fixes #4407
This commit is contained in:
Jeremy Ruston
2020-01-05 13:54:06 +00:00
parent f59d044a8c
commit 6732b3c0d9
10 changed files with 38 additions and 38 deletions

View File

@@ -8,20 +8,20 @@ description: {{$:/language/Buttons/Help/Hint}}
\whitespace trim
<$reveal type="match" state="$:/config/ShowHelp" text="yes">
<$button set="$:/config/ShowHelp" setTo="no" tooltip={{$:/language/Buttons/Help/Hint}} aria-label={{$:/language/Buttons/Help/Caption}} class="""$(tv-config-toolbar-class)$ tc-selected""">
<$list filter="[<tv-config-toolbar-icons>prefix[yes]]">
<$list filter="[<tv-config-toolbar-icons>match[yes]]">
{{$:/core/images/help}}
</$list>
<$list filter="[<tv-config-toolbar-text>prefix[yes]]">
<$list filter="[<tv-config-toolbar-text>match[yes]]">
<span class="tc-btn-text"><$text text={{$:/language/Buttons/Help/Caption}}/></span>
</$list>
</$button>
</$reveal>
<$reveal type="nomatch" state="$:/config/ShowHelp" text="yes">
<$button set="$:/config/ShowHelp" setTo="yes" tooltip={{$:/language/Buttons/Help/Hint}} aria-label={{$:/language/Buttons/Help/Caption}} class=<<tv-config-toolbar-class>>>
<$list filter="[<tv-config-toolbar-icons>prefix[yes]]">
<$list filter="[<tv-config-toolbar-icons>match[yes]]">
{{$:/core/images/help}}
</$list>
<$list filter="[<tv-config-toolbar-text>prefix[yes]]">
<$list filter="[<tv-config-toolbar-text>match[yes]]">
<span class="tc-btn-text"><$text text={{$:/language/Buttons/Help/Caption}}/></span>
</$list>
</$button>