1
0
mirror of https://github.com/moparisthebest/mail synced 2024-11-26 19:02:20 -05:00

only show spinner in reader if selected not undefined

This commit is contained in:
Tankred Hase 2014-02-21 17:19:39 +01:00
parent 4fbdceeeeb
commit 98d23c6216

View File

@ -35,7 +35,7 @@
</div>
</div><!--/.ng-switch-->
<div class="body" ng-switch="state.mailList.selected.encrypted === false || (state.mailList.selected.encrypted === true && state.mailList.selected.decrypted === true)">
<div class="body" ng-switch="state.mailList.selected === undefined || state.mailList.selected.encrypted === false || (state.mailList.selected.encrypted === true && state.mailList.selected.decrypted === true)">
<div ng-switch-when="true">
<!-- Render lines of a text-email in divs for easier styling -->
<div class="line" ng-repeat="line in state.mailList.selected.body.split('\n') track by $index" ng-class="{'empty-line': lineEmpty(line)}">{{line}}<br></div>