1
0
mirror of https://github.com/nerzhul/ocsms.git synced 2025-06-19 05:46:09 +00:00

Display the contacts first initial in the app header. (#258)

If there is no avatar icon to match the contacts list style.
This commit is contained in:
Greg Ross 2018-07-09 14:48:27 -04:00 committed by Loïc Blot
parent 3786ef6b05
commit 9b3d3808bf

View File

@ -66,8 +66,8 @@ use \OCA\OcSms\Lib\CountryCodes;
<div id="app-content-header" ng-show="!isConvLoading && selectedContact.label !== undefined && selectedContact.label !== ''"
ng-style="{'background-color': (selectedContact.uid | peerColor)}">
<div id="ocsms-contact-avatar">
<img class="ocsms-plavatar-big" ng-src="{{ selectedContact.avatar }}"
ng-show="selectedContact.avatar !== undefined" />
<img class="ocsms-plavatar-big" ng-show="selectedContact.avatar !== undefined" ng-src="{{ selectedContact.avatar }}" />
<div class="ocsms-plavatar-big" ng-show="selectedContact.avatar === undefined">{{ selectedContact.label | firstCharacter }}</div>
</div>
<div id="ocsms-contact-details">
<div id="ocsms-phone-label">{{ selectedContact.label }} </div>