Improve attendees display in event editor

Fixes #3730
This commit is contained in:
Francis Lachapelle
2016-06-16 16:08:21 -04:00
parent 734d680708
commit 429aa1a91d
2 changed files with 22 additions and 22 deletions
@@ -218,7 +218,7 @@
vm.categories = {};
vm.showRecurrenceEditor = vm.component.$hasCustomRepeat;
vm.toggleRecurrenceEditor = toggleRecurrenceEditor;
vm.showAttendeesEditor = angular.isDefined(vm.component.attendees);
vm.showAttendeesEditor = false;
vm.toggleAttendeesEditor = toggleAttendeesEditor;
//vm.searchText = null;
vm.cardFilter = cardFilter;
@@ -276,13 +276,11 @@
// User pressed "Enter" in search field, adding a non-matching card
if (card.isValidEmail()) {
vm.component.addAttendee(new Card({ emails: [{ value: card }] }));
vm.showAttendeesEditor = true;
vm.searchText = '';
}
}
else {
vm.component.addAttendee(card);
vm.showAttendeesEditor = true;
}
}