-
Notifications
You must be signed in to change notification settings - Fork 35
[MNOE-1037]on company view page - tab lost on refresh #503
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
base: 2.0
Are you sure you want to change the base?
Conversation
| vm.initialize = -> | ||
| vm.isLoading = false | ||
| if vm.isBillingShown() | ||
| vm.activeTab = 'billing' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jin521
Can this be moved into the setActiveTab() method to keep the logic all together?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed
ouranos
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it would make more sense to leverage the ui-router rather than parsing the state and setting the tab based on that.
You could either use:
Or do a bit more research on what's possible.
This link could be interesting to read to.
Also you only did this for 2 tabs out of the 4.
| vm.activeTab = 'billing' | ||
| else | ||
| vm.activeTab = 'members' | ||
| #On refreshing the page it should stay on the same tab |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use one space between the leading # character of the comment and the text of the comment.
| vm.initialize = -> | ||
| vm.isLoading = false | ||
| if vm.isBillingShown() | ||
| vm.activeTab = 'billing' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed
| #==================================== | ||
| # Tab Management | ||
| #==================================== | ||
| setActiveTab = () -> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be made generic as there can be more tabs depending on settings and permission: billing, team, members, settings
…o MNOE-1037-tab-lost-on-refresh
…o MNOE-1037-tab-lost-on-refresh
No description provided.