mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-12-28 11:00:27 +00:00
Fix broken import previews
All three were inadvertently showing the existing tiddler (if any), not the imported tiddler.
This commit is contained in:
parent
33e636cbe7
commit
33453039fc
@ -2,6 +2,17 @@ title: $:/core/ui/ImportPreviews/Fields
|
||||
tags: $:/tags/ImportPreview
|
||||
caption: {{$:/language/Import/Listing/Preview/Fields}}
|
||||
|
||||
<$tiddler tiddler=<<payloadTiddler>>>
|
||||
<$transclude tiddler="$:/core/ui/TiddlerFields"/>
|
||||
</$tiddler>
|
||||
<table class="tc-view-field-table">
|
||||
<tbody>
|
||||
<$list filter="[<payloadTiddler>subtiddlerfields<currentTiddler>sort[]] -text" variable="fieldName">
|
||||
<tr class="tc-view-field">
|
||||
<td class="tc-view-field-name">
|
||||
<$text text=<<fieldName>>/>
|
||||
</td>
|
||||
<td class="tc-view-field-value">
|
||||
<$view field=<<fieldName>> tiddler=<<currentTiddler>> subtiddler=<<payloadTiddler>>/>
|
||||
</td>
|
||||
</tr>
|
||||
</$list>
|
||||
</tbody>
|
||||
</table>
|
||||
|
@ -2,4 +2,4 @@ title: $:/core/ui/ImportPreviews/Text
|
||||
tags: $:/tags/ImportPreview
|
||||
caption: {{$:/language/Import/Listing/Preview/Text}}
|
||||
|
||||
<$transclude tiddler=<<payloadTiddler>> mode="block"/>
|
||||
<$transclude tiddler=<<currentTiddler>> subtiddler=<<payloadTiddler>> mode="block"/>
|
||||
|
@ -2,4 +2,4 @@ title: $:/core/ui/ImportPreviews/TextRaw
|
||||
tags: $:/tags/ImportPreview
|
||||
caption: {{$:/language/Import/Listing/Preview/TextRaw}}
|
||||
|
||||
<pre><code><$view tiddler=<<payloadTiddler>>/></code></pre>
|
||||
<pre><code><$view tiddler=<<currentTiddler>> subtiddler=<<payloadTiddler>> /></code></pre>
|
Loading…
Reference in New Issue
Block a user