mirror of
				https://github.com/TheAnachronism/docspell.git
				synced 2025-10-30 21:40:12 +00:00 
			
		
		
		
	Always show custom field dropdown in detail mode
Even if there are no custom fields define, the control is shown now. The user can create a new one in this view.
This commit is contained in:
		| @@ -425,5 +425,5 @@ tabState settings allNames model = | ||||
|     in | ||||
|     FTabState.tabState settings | ||||
|         openTabs | ||||
|         model.customFieldsModel | ||||
|         Nothing | ||||
|         (.title >> ToggleAkkordionTab) | ||||
|   | ||||
| @@ -10,7 +10,7 @@ import Set exposing (Set) | ||||
| tabState : | ||||
|     UiSettings | ||||
|     -> Set String | ||||
|     -> Comp.CustomFieldMultiInput.Model | ||||
|     -> Maybe Comp.CustomFieldMultiInput.Model | ||||
|     -> (TB.Tab msg -> msg) | ||||
|     -> TB.Tab msg | ||||
|     -> ( TB.State, msg ) | ||||
| @@ -35,7 +35,9 @@ tabState settings openTabs cfmodel toggle tab = | ||||
|  | ||||
|                 "Custom Fields" -> | ||||
|                     isHidden Data.Fields.CustomFields | ||||
|                         || Comp.CustomFieldMultiInput.isEmpty cfmodel | ||||
|                         || (Maybe.map Comp.CustomFieldMultiInput.isEmpty cfmodel | ||||
|                                 |> Maybe.withDefault False | ||||
|                            ) | ||||
|  | ||||
|                 "Date" -> | ||||
|                     isHidden Data.Fields.Date | ||||
|   | ||||
| @@ -1149,7 +1149,7 @@ tabState : UiSettings -> Model -> TB.Tab Msg -> ( TB.State, Msg ) | ||||
| tabState settings model tab = | ||||
|     FTabState.tabState settings | ||||
|         model.openTabs | ||||
|         model.customFieldModel | ||||
|         (Just model.customFieldModel) | ||||
|         (.title >> ToggleAkkordionTab) | ||||
|         tab | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user