mirror of
				https://github.com/TheAnachronism/docspell.git
				synced 2025-10-30 21:40:12 +00:00 
			
		
		
		
	Improve label for suggestions when there are none
This commit is contained in:
		| @@ -407,7 +407,11 @@ renderSuggestions texts model mkName idnames tagger = | ||||
|         , class "flex flex-col text-sm" | ||||
|         ] | ||||
|         [ div [ class "font-bold my-1" ] | ||||
|             [ text texts.suggestions | ||||
|             [ if List.isEmpty idnames then | ||||
|                 text texts.noSuggestions | ||||
|  | ||||
|               else | ||||
|                 text texts.suggestions | ||||
|             ] | ||||
|         , ul [ class "list-disc ml-6" ] <| | ||||
|             (idnames | ||||
|   | ||||
| @@ -28,6 +28,7 @@ type alias Texts = | ||||
|     , addNewEquipment : String | ||||
|     , editEquipment : String | ||||
|     , suggestions : String | ||||
|     , noSuggestions : String | ||||
|     , formatDate : Int -> String | ||||
|     , direction : Direction -> String | ||||
|     } | ||||
| @@ -50,6 +51,7 @@ gb = | ||||
|     , addNewEquipment = "Add new equipment" | ||||
|     , editEquipment = "Edit equipment" | ||||
|     , suggestions = "Suggestions" | ||||
|     , noSuggestions = "No suggestions" | ||||
|     , formatDate = DF.formatDateLong Messages.UiLanguage.English | ||||
|     , direction = Messages.Data.Direction.gb | ||||
|     } | ||||
| @@ -72,6 +74,7 @@ de = | ||||
|     , addNewEquipment = "Neues Zubehör hinzufügen" | ||||
|     , editEquipment = "Zubehör ändern" | ||||
|     , suggestions = "Vorschläge" | ||||
|     , noSuggestions = "Keine Vorschläge" | ||||
|     , formatDate = DF.formatDateLong Messages.UiLanguage.German | ||||
|     , direction = Messages.Data.Direction.de | ||||
|     } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user