Add email addresses to contacts menu

Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
pull/28822/head
Daniel Kesselberg 3 years ago
parent a994ef0c4f
commit 024881dbd3
No known key found for this signature in database
GPG Key ID: 36E3664E099D0614
  1. 2
      core/js/dist/login.js
  2. 2
      core/js/dist/login.js.map
  3. 2
      core/js/dist/main.js
  4. 2
      core/js/dist/main.js.map
  5. 1
      core/src/OC/contactsmenu/contact.handlebars
  6. 1
      lib/private/Contacts/ContactsMenu/Entry.php
  7. 4
      tests/lib/Contacts/ContactsMenu/EntryTest.php

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -6,6 +6,7 @@
<div class="body">
<div class="full-name">{{contact.fullName}}</div>
<div class="last-message">{{contact.lastMessage}}</div>
<div class="email-address">{{contact.emailAddresses}}</div>
</div>
{{#if contact.topAction}}
<a class="top-action" href="{{contact.topAction.hyperlink}}" title="{{contact.topAction.title}}">

@ -165,6 +165,7 @@ class Entry implements IEntry {
'topAction' => $topAction,
'actions' => $otherActions,
'lastMessage' => '',
'emailAddresses' => $this->getEMailAddresses(),
];
}
}

@ -96,16 +96,18 @@ class EntryTest extends TestCase {
public function testJsonSerialize() {
$expectedJson = [
'id' => 123,
'id' => '123',
'fullName' => 'Guadalupe Frisbey',
'topAction' => null,
'actions' => [],
'lastMessage' => '',
'avatar' => null,
'emailAddresses' => ['user@example.com']
];
$this->entry->setId(123);
$this->entry->setFullName('Guadalupe Frisbey');
$this->entry->addEMailAddress('user@example.com');
$json = $this->entry->jsonSerialize();
$this->assertEquals($expectedJson, $json);

Loading…
Cancel
Save