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