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

Fixes #4784: Refactor TabPanel Heading Assignment Logic #4785

Merged
merged 1 commit into from
Nov 22, 2024

Conversation

thabaum
Copy link
Contributor

@thabaum thabaum commented Oct 24, 2024

Fixes #4784

  • Simplified the logic for setting the Heading property in the TabPanel component.
  • Replaced the if-else statement with a ternary operator for improved readability and maintainability.
  • Ensured that the functionality remains unchanged and verified correct assignment of headings.
  • Aligns with the refactoring approach used in public string DisplayHeading() method.

- Simplified the logic for setting the Heading property in the TabPanel component.
- Replaced the if-else statement with a ternary operator for improved readability and maintainability.
- Ensured that the functionality remains unchanged and verified correct assignment of headings.
@sbwalker sbwalker merged commit ef27937 into oqtane:dev Nov 22, 2024
1 check passed
@sbwalker
Copy link
Member

I merged this PR however in general I am not in favor of these types of code changes (ie. refactoring that does not resolve any real issue)

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.

[ENH] Refactor Tab Strip Panel If-Else Statement
2 participants