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

Add option to memorize Tab state in the browser URL #1293

Merged
merged 8 commits into from
Jun 16, 2022
Merged

Conversation

Schottkyc137
Copy link
Contributor

see issue: #1254

Visible/Frontend Changes

  • Previously opened tabs will be memorized in the URL's query params

The proposed solution is based on a directive that can be applied to mat-tab-groups like so:

<mat-tab-group appTabStateMemo>
   ...
</mat-tab-group>

No further setup is required

@github-actions
Copy link
Contributor

MatTabGroupHarness
);
const activatedRoute = TestBed.inject(ActivatedRoute);
await tabGroupHarness.selectTab({ label: "D" });
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pretty clean test! I have never used this TestbedHarnessEnvironment before

# Conflicts:
#	src/app/core/entity-components/entity-details/entity-details.component.html
#	src/app/core/entity-components/entity-details/entity-details.module.ts
#	src/app/core/entity-components/entity-list/entity-list.component.html
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

Copy link
Collaborator

@TheSlimvReal TheSlimvReal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pretty nice solution with the directive. Thanks for the work!

@TheSlimvReal TheSlimvReal merged commit 9b38c44 into master Jun 16, 2022
@TheSlimvReal TheSlimvReal deleted the memorize-tabs branch June 16, 2022 09:34
@aam-digital-ci
Copy link
Collaborator

🎉 This PR is included in version 3.6.2-master.5 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@aam-digital-ci
Copy link
Collaborator

🎉 This PR is included in version 3.6.3-master.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@aam-digital-ci
Copy link
Collaborator

🎉 This PR is included in version 3.7.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

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.

3 participants