diff --git a/core/language/en-GB/Import.multids b/core/language/en-GB/Import.multids index 57c2d09be..4be04be12 100644 --- a/core/language/en-GB/Import.multids +++ b/core/language/en-GB/Import.multids @@ -15,6 +15,8 @@ Listing/Preview/TextRaw: Text (Raw) Listing/Preview/Fields: Fields Listing/Preview/Diff: Diff Listing/Preview/DiffFields: Diff (Fields) +Listing/ImportOptions/Caption: Import options +Listing/ImportOptions/NoMatch: No import options apply to these files. Listing/Rename/Tooltip: Rename tiddler before importing Listing/Rename/Prompt: Rename to: Listing/Rename/ConfirmRename: Rename tiddler diff --git a/core/ui/ImportListing.tid b/core/ui/ImportListing.tid index 86dba83c8..6803e1d05 100644 --- a/core/ui/ImportListing.tid +++ b/core/ui/ImportListing.tid @@ -49,23 +49,40 @@ title: $:/core/ui/ImportListing \end \whitespace trim -<$let importJson={{{ [{$:/Import}] }}} - importTitles={{{ [jsonindexes[tiddlers]] }}} - importTypes={{{ [(importTitles)] :map[jsonget[tiddlers],,[type]] }}} - anyMatch={{{ [all[shadows+tiddlers]tag[$:/tags/ImportOptions]get[condition]] :map[(importTypes)subfilter] +[!is[blank]limit[1]] }}}> - <%if [!is[blank]] %> -
- <$list filter="[all[shadows+tiddlers]tag[$:/tags/ImportOptions]]" variable="importOption"> - <$let condition={{{ [get[condition]] }}} - hasMatch={{{ [(importTypes)subfilterlimit[1]] }}}> - <%if [!is[blank]] %> - <$transclude tiddler=<>/> - <%endif%> - - -
- <%endif%> - +<%if [all[shadows+tiddlers]tag[$:/tags/ImportOptions]limit[1]] %> + <$reveal type="nomatch" state="$:/state/import/options" text="yes" tag="div"> + <$button class="tc-btn-invisible tc-btn-dropdown" set="$:/state/import/options" setTo="yes" aria-label={{$:/language/Import/Listing/ImportOptions/Caption}} aria-expanded="false"> + {{$:/core/images/right-arrow}}<> + + + <$reveal type="match" state="$:/state/import/options" text="yes" tag="div"> + <$button class="tc-btn-invisible tc-btn-dropdown" set="$:/state/import/options" setTo="no" aria-label={{$:/language/Import/Listing/ImportOptions/Caption}} aria-expanded="true"> + {{$:/core/images/down-arrow}}<> + + <$let importJson={{{ [{$:/Import}] }}} + importTitles={{{ [jsonindexes[tiddlers]] }}} + importTypes={{{ [(importTitles)] :map[jsonget[tiddlers],,[type]] }}} + anyMatch={{{ [all[shadows+tiddlers]tag[$:/tags/ImportOptions]get[condition]] :map[(importTypes)subfilter] +[!is[blank]limit[1]] }}}> + <%if [!is[blank]] %> +
+ <$list filter="[all[shadows+tiddlers]tag[$:/tags/ImportOptions]]" variable="importOption"> + <$let condition={{{ [get[condition]] }}} + hasMatch={{{ [(importTypes)subfilterlimit[1]] }}}> + <%if [!is[blank]] %> + <$transclude tiddler=<>/> + <%endif%> + + +
+ <%else%> +
+ <> +
+ <%endif%> + + +<%endif%> +