Skip to content

Conversation

@kaladay
Copy link
Contributor

@kaladay kaladay commented Jun 25, 2018

This re-orders tabs based on current role.

The use of ng-repeat is preferred but the current design of wvr-tabs prevents this from working as expected. ng-show is used instead.

The routing had to be changed for the default tab to be properly selected.

kaladay and others added 3 commits June 25, 2018 09:46
Perform access control in the controller and present a list of columns for renderring such than an ng-repeat can be used:
  `<wvr-tab ng-repeat="column in columns" path="{{column.path}}" view="views/management/{{column.view}}.html" label="{{column.label}}">{{column.label}}</wvr-tab>`

This is not working as expected, possibly due to the current weaver tabs implementation.
This includes a not so great work-around using ng-show with a preset number of columns.

This should be improved to use ng-repeat or something similar instead of using ng-show with a preset column list.
@coveralls
Copy link

Pull Request Test Coverage Report for Build 67

  • 1 of 26 (3.85%) changed or added relevant lines in 1 file are covered.
  • 1 unchanged line in 1 file lost coverage.
  • Overall coverage decreased (-0.3%) to 12.03%

Changes Missing Coverage Covered Lines Changed/Added Lines %
app/controllers/managementController.js 1 26 3.85%
Files with Coverage Reduction New Missed Lines %
app/controllers/managementController.js 1 2.94%
Totals Coverage Status
Change from base Build 17: -0.3%
Covered Lines: 169
Relevant Lines: 1184

💛 - Coveralls

@kaladay kaladay requested a review from a user July 2, 2018 15:12
@kaladay
Copy link
Contributor Author

kaladay commented Jul 2, 2018

There are plans to come back to this PR and re-consider its design and possibly pulling this in at a later date.

@kaladay kaladay closed this Jul 2, 2018
@ghost ghost deleted the sprint5-b03528-reorder_tabs_by_role branch July 12, 2018 17:02
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.

4 participants