Split RainLoop/Actions.php and use JsonSerializable

This commit is contained in:
djmaze 2020-10-19 22:09:25 +02:00
parent 8cd2bd46d8
commit 9844c1882c
24 changed files with 3205 additions and 3066 deletions

View file

@ -155,7 +155,7 @@ class ContactsPopupView extends AbstractViewNext {
});
this.contactsCheckedOrSelectedUids = ko.computed(() =>
this.contactsCheckedOrSelected().map(contact => contact.idContact)
this.contactsCheckedOrSelected().map(contact => contact.id)
);
this.selector = new Selector(
@ -436,7 +436,7 @@ class ContactsPopupView extends AbstractViewNext {
if (contacts.length) {
contacts.forEach(contact => {
if (currentContact && currentContact.idContact === contact.idContact) {
if (currentContact && currentContact.id === contact.id) {
currentContact = null;
this.currentContact(null);
}
@ -500,7 +500,7 @@ class ContactsPopupView extends AbstractViewNext {
this.viewReadOnly(false);
if (contact) {
id = contact.idContact;
id = contact.id;
if (Array.isNotEmpty(contact.properties)) {
contact.properties.forEach(property => {
if (property && property[0]) {