mirror of
				https://github.com/TheAnachronism/docspell.git
				synced 2025-10-31 17:50:11 +00:00 
			
		
		
		
	Display error message properly on modal edit
This commit is contained in:
		| @@ -300,12 +300,20 @@ update flags msg model = | ||||
|             ) | ||||
|  | ||||
|         SubmitResp (Ok res) -> | ||||
|             let | ||||
|                 ret = | ||||
|                     if res.success then | ||||
|                         Just (makeValue model.form) | ||||
|  | ||||
|                     else | ||||
|                         Nothing | ||||
|             in | ||||
|             ( { model | ||||
|                 | result = Just res | ||||
|                 , submitting = False | ||||
|               } | ||||
|             , Cmd.none | ||||
|             , Just (makeValue model.form) | ||||
|             , ret | ||||
|             ) | ||||
|  | ||||
|         SubmitResp (Err err) -> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user