Actually hide tabs with no visible fields #6657
Unanswered
puzzledmonkey
asked this question in
Ideas & Feature Requests
Replies: 1 comment
-
@crynobone i really feel that just showing the tab buttons and not allowing them to be clicked (without even some visible 'disabled' state) is just confusing, and that the tabs should be hidden when there's no fields visible inside them - just as the fields themselves are hidden. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description:
When there are no visible fields in a tab, hide the tab button from the tab bar
Detailed steps to reproduce the issue on a fresh Nova installation:
As per #6615 which is marked as done, but actually the tab button is currently only disabled, not hidden.
it's just a matter of replacing
:disabled="tab.visibleFieldsForPanel.visibleFieldsCount.value == 0"
with
v-show="tab.visibleFieldsForPanel.visibleFieldsCount.value > 0"
in components/Forms/TabsPanel
If you want to make this configurable it could be added via hideEmptyTabButtons() or a similar helper on the tab group?
The UX at the moment is strange as there are lots of buttons which are not clickable (and don't even look 'disabled').
Beta Was this translation helpful? Give feedback.
All reactions