mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-11-15 14:57:42 +00:00
Fix palette switcher used in the sidebar
by adding a new "thumbnails" parameter to the template
This commit is contained in:
@@ -4,11 +4,18 @@ caption: {{$:/language/ControlPanel/Palette/Caption}}
|
||||
|
||||
\define lingo-base() $:/language/ControlPanel/Palette/
|
||||
|
||||
{{$:/snippets/paletteswitcher}}
|
||||
<$transclude $tiddler="$:/snippets/paletteswitcher" thumbnails="yes"/>
|
||||
|
||||
<$let paletteEditor={{{ [{$:/palette}get[editor]] :else[{$:/palette}get[palette-import]!match[]get[editor]] }}}>
|
||||
{{$:/snippets/palettetests}}
|
||||
|
||||
<$let
|
||||
paletteEditor={{{ [{$:/palette}get[editor]] :else[{$:/palette}get[palette-import]!match[]get[editor]] }}}
|
||||
>
|
||||
<%if [<paletteEditor>!match[]] %>
|
||||
<$transclude $tiddler=<<paletteEditor>> $mode="block"/>
|
||||
<div>
|
||||
<<lingo CustomEditor/Prompt>>
|
||||
<$transclude $tiddler=<<paletteEditor>> $mode="block"/>
|
||||
</div>
|
||||
<%endif%>
|
||||
</$let>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user