-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
[#10593] Disable view/download session results button according to instructor privilege #10611
[#10593] Disable view/download session results button according to instructor privilege #10611
Conversation
@@ -86,7 +86,8 @@ | |||
<div ngbDropdown class="d-inline-block"> | |||
<button class="btn btn-light btn-sm" ngbDropdownToggle>Results</button> | |||
<div ngbDropdownMenu> | |||
<a class="btn dropdown-item clickable" (click)="viewSessionResultEvent.emit(idx)" | |||
<a class="btn dropdown-item clickable {{!sessionsTableRowModel.instructorPrivilege.canViewSessionInSections ? 'disabled' : ''}}" |
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 ngClass
instead?
I think it might be better to wait for some resolution in #10613 before proceeding with this PR. The required permission for access that you outlined here is |
This does not sound right. This PR in fact does the right thing. |
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.
LGTM
Fixes #10593