1
0
mirror of https://github.com/nerzhul/ocsms.git synced 2025-06-07 16:06:15 +00:00

contactlist: Drop a useless div to make conditional on ul

This commit is contained in:
Loic Blot 2018-11-11 11:39:31 +01:00
parent eb383cbee9
commit 81de9d6906
No known key found for this signature in database
GPG Key ID: EFAA458E8C153987

View File

@ -50,8 +50,7 @@ use \OCA\OcSms\Lib\CountryCodes;
<div class="contact-list-no-contact" v-if="orderedContacts.length === 0 && !isContactsLoading">
<?php p($l->t('No contact found.'));?>
</div>
<div v-if="orderedContacts.length > 0 && !isContactsLoading">
<ul class="contact-list">
<ul class="contact-list" v-if="orderedContacts.length > 0 && !isContactsLoading">
<li v-for="contact in orderedContacts" peer-label="{{ contact.label }}" v-on:click="loadConversation(contact);" href="#">
<img class="ocsms-plavatar" :src="contact.avatar" v-if="contact.avatar !== undefined" />
<div class="ocsms-plavatar" v-if="contact.avatar === undefined" v-bind:style="{'backgroundColor': getContactColor(contact.uid) }">{{ contact.label | firstCharacter }}</div>
@ -59,7 +58,6 @@ use \OCA\OcSms\Lib\CountryCodes;
</li>
</ul>
</div>
</div>
<div id="app-settings">
<div id="app-settings-header">
<button name="app settings" class="settings-button" data-apps-slide-toggle="#app-settings-content">