kopia lustrzana https://github.com/miklobit/TiddlyWiki5
				
				
				
			Improve import cancel warning (#5812)
							rodzic
							
								
									0b56d5fd37
								
							
						
					
					
						commit
						afa653a7aa
					
				|  | @ -3,6 +3,7 @@ title: $:/language/Import/ | ||||||
| Editor/Import/Heading: Import images and insert them into the editor. | Editor/Import/Heading: Import images and insert them into the editor. | ||||||
| Imported/Hint: The following tiddlers were imported: | Imported/Hint: The following tiddlers were imported: | ||||||
| Listing/Cancel/Caption: Cancel | Listing/Cancel/Caption: Cancel | ||||||
|  | Listing/Cancel/Warning: Do you wish to cancel the import? | ||||||
| Listing/Hint: These tiddlers are ready to import: | Listing/Hint: These tiddlers are ready to import: | ||||||
| Listing/Import/Caption: Import | Listing/Import/Caption: Import | ||||||
| Listing/Select/Caption: Select | Listing/Select/Caption: Select | ||||||
|  |  | ||||||
|  | @ -3,8 +3,15 @@ tags: $:/tags/ViewTemplate | ||||||
| 
 | 
 | ||||||
| \define lingo-base() $:/language/Import/ | \define lingo-base() $:/language/Import/ | ||||||
| 
 | 
 | ||||||
|  | \define confirmCancel() | ||||||
|  | <$action-confirm $message={{$:/language/Import/Listing/Cancel/Warning}} > | ||||||
|  | <$action-deletetiddler $tiddler=<<currentTiddler>>/> | ||||||
|  | <$action-sendmessage $message="tm-close-tiddler" title=<<currentTiddler>>/> | ||||||
|  | </$action-confirm> | ||||||
|  | \end | ||||||
|  | 
 | ||||||
| \define buttons() | \define buttons() | ||||||
| <$button message="tm-delete-tiddler" param=<<currentTiddler>>><<lingo Listing/Cancel/Caption>></$button> | <$button actions=<<confirmCancel>> ><<lingo Listing/Cancel/Caption>></$button> | ||||||
| <$button message="tm-perform-import" param=<<currentTiddler>>><<lingo Listing/Import/Caption>></$button> | <$button message="tm-perform-import" param=<<currentTiddler>>><<lingo Listing/Import/Caption>></$button> | ||||||
| <<lingo Listing/Preview>> <$select tiddler="$:/state/importpreviewtype" default="$:/core/ui/ImportPreviews/Text"> | <<lingo Listing/Preview>> <$select tiddler="$:/state/importpreviewtype" default="$:/core/ui/ImportPreviews/Text"> | ||||||
| <$list filter="[all[shadows+tiddlers]tag[$:/tags/ImportPreview]!has[draft.of]]"> | <$list filter="[all[shadows+tiddlers]tag[$:/tags/ImportPreview]!has[draft.of]]"> | ||||||
|  |  | ||||||
		Ładowanie…
	
		Reference in New Issue
	
	 Mario Pietsch
						Mario Pietsch