GUAC-1172: Work around angular-translate/angular-translate#788 by using the translate directive (no filter). Current scope is not available to filters as of AngularJS 1.3.

This commit is contained in:
Michael Jumper
2015-07-02 16:12:17 -07:00
parent 076a549754
commit 04a303108d
5 changed files with 20 additions and 10 deletions

View File

@@ -96,7 +96,9 @@ THE SOFTWARE.
<tr ng-repeat="wrapper in wrapperPage">
<td class="username">{{wrapper.entry.username}}</td>
<td class="start">{{wrapper.entry.startDate | date:historyDateFormat}}</td>
<td class="duration">{{wrapper.durationText | translate:"{VALUE: wrapper.duration.value, UNIT: wrapper.duration.unit}"}}</td>
<td class="duration"
translate="{{wrapper.durationText}}"
translate-values="{VALUE: wrapper.duration.value, UNIT: wrapper.duration.unit}"></td>
</tr>
</tbody>
</table>