1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-09-28 15:08:46 +00:00

Ensure that the current tour isn't listed as an option in the final step

This commit is contained in:
Jeremy Ruston 2023-09-21 10:24:34 +01:00
parent 6088fd7d95
commit 4ef8ce3caa
2 changed files with 7 additions and 2 deletions

View File

@ -40,7 +40,12 @@ next
</$reveal>
</div>
</div>
<$transclude tiddler={{$:/state/tour/step}} mode="block"/>
<$let
currentTour={{$:/config/CurrentTour}}
currentTourStep={{$:/state/tour/step}}
>
<$transclude tiddler=<<currentTourStep>> mode="block"/>
</$let>
<$list filter="[{$:/state/tour/step}has[selector]]" variable="ignore">
<$button class="tc-btn-big-green" style="background-color: green;">
<$action-sendmessage $message="tm-spotlight-element" selector={{{ [{$:/state/tour/step}get[selector]] }}} selector-fallback-1={{{ [{$:/state/tour/step}get[selector-fallback-1]] }}} selector-fallback-2={{{ [{$:/state/tour/step}get[selector-fallback-2]] }}}/>

View File

@ -13,4 +13,4 @@ You have completed the tour.
You can choose to take another tour:
<<tour-chooser filter:"[all[shadows+tiddlers]tag[$:/tags/Tour]] -[[$:/plugins/tiddlywiki/tour/introduction-to-tiddlywiki]]">>
<<tour-chooser filter:"[all[shadows+tiddlers]tag[$:/tags/Tour]] -[<currentTour>]">>