Commit adf3d65c authored by Jaden's avatar Jaden Committed by Samuel GAIST

[reports] properly toggle exp access in tables

parent 02f703d0
Pipeline #33457 passed with stage
in 21 minutes and 52 seconds
......@@ -284,10 +284,10 @@ angular.module('reportApp')
<tbody>
<tr ng-repeat="exp in group.experiments | orderBy:sortFunc:sortField.isReversed">
<td ng-repeat='field in fields'>
<a ng-if='$index == 0 && getExperimentUrl(exp) && accessMap[exp]' href='{{ getExperimentUrl(exp) }}'>
<a ng-if='$index == 0 && accessMap[exp]' href='{{ getExperimentUrl(exp) }}'>
{{ getFieldVal(exp, field) }}
</a>
<span ng-if='$index == 0 && !(accessMap[exp] || getExperimentUrl(exp))' title='experiment not accessible for current user'>
<span ng-if='$index == 0 && !accessMap[exp]' title='experiment not accessible for current user'>
{{ getFieldVal(exp, field) }}
</span>
<span ng-if='$index != 0'>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment