diff --git a/core/language/en-GB/Import.multids b/core/language/en-GB/Import.multids index 074ec5806..869a76721 100644 --- a/core/language/en-GB/Import.multids +++ b/core/language/en-GB/Import.multids @@ -3,6 +3,7 @@ title: $:/language/Import/ Editor/Import/Heading: Import images and insert them into the editor. Imported/Hint: The following tiddlers were imported: Listing/Cancel/Caption: Cancel +Listing/Cancel/Warning: Do you wish to cancel the import? Listing/Hint: These tiddlers are ready to import: Listing/Import/Caption: Import Listing/Select/Caption: Select diff --git a/core/ui/ViewTemplate/import.tid b/core/ui/ViewTemplate/import.tid index 4de7539b3..33e13fcae 100644 --- a/core/ui/ViewTemplate/import.tid +++ b/core/ui/ViewTemplate/import.tid @@ -3,8 +3,15 @@ tags: $:/tags/ViewTemplate \define lingo-base() $:/language/Import/ +\define confirmCancel() +<$action-confirm $message={{$:/language/Import/Listing/Cancel/Warning}} > +<$action-deletetiddler $tiddler=<>/> +<$action-sendmessage $message="tm-close-tiddler" title=<>/> + +\end + \define buttons() -<$button message="tm-delete-tiddler" param=<>><> +<$button actions=<> ><> <$button message="tm-perform-import" param=<>><> <> <$select tiddler="$:/state/importpreviewtype" default="$:/core/ui/ImportPreviews/Text"> <$list filter="[all[shadows+tiddlers]tag[$:/tags/ImportPreview]!has[draft.of]]">