Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix panels for Tabs in create and update views. fixes #85 #139

Merged
merged 5 commits into from
Feb 2, 2021

Conversation

elijahworkz
Copy link
Contributor

@elijahworkz elijahworkz commented Jan 31, 2021

This fixes the issue in Update or Create view when all tabs panels were bunched into one default. Issue #85

It also makes 'fieldsOutsideTabs' in FormTabs.vue obsolete as any fields that are not included in Tabs will be shown on default Panel

src/TabsOnEdit.php Outdated Show resolved Hide resolved
src/TabsOnEdit.php Outdated Show resolved Hide resolved
src/TabsOnEdit.php Outdated Show resolved Hide resolved
@elijahworkz
Copy link
Contributor Author

@RVxLab I refactored the function to use each() on fields collection. That solved other issues as well.

Please review.

@RVxLab
Copy link
Collaborator

RVxLab commented Feb 2, 2021

Looks good and seems to work well on Nova 3.21. Thanks for your PR!

One question before I merge though, what exactly do you mean with this?

It also makes 'fieldsOutsideTabs' in FormTabs.vue obsolete as any fields that are not included in Tabs will be shown on default Panel

Are you saying that lines 3 through 16 can be removed?

If yes, then perfect. Otherwise, please explain.

@elijahworkz
Copy link
Contributor Author

@RVxLab yes.
that bit in template and also in the script - line 96 and also lines 114 - 117

@RVxLab RVxLab merged commit 1adf95e into eminiarts:master Feb 2, 2021
@RVxLab
Copy link
Collaborator

RVxLab commented Feb 2, 2021

I'll fix that on my end. Thanks again!

RVxLab added a commit that referenced this pull request Feb 2, 2021
Removed now unneeded fieldsOutsideTabs, see #139
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants