mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-23 04:15:26 +00:00
(js) Improve event editor (attendees list)
Respect SOGoSearchMinimumWordLength and hide detailed view after deleting the last attendee.
This commit is contained in:
@@ -159,6 +159,7 @@
|
||||
//vm.searchText = null;
|
||||
vm.cardFilter = cardFilter;
|
||||
vm.addAttendee = addAttendee;
|
||||
vm.removeAttendee = removeAttendee;
|
||||
vm.addAttachUrl = addAttachUrl;
|
||||
vm.cancel = cancel;
|
||||
vm.save = save;
|
||||
@@ -218,6 +219,12 @@
|
||||
}
|
||||
}
|
||||
|
||||
function removeAttendee(attendee) {
|
||||
vm.component.deleteAttendee(attendee);
|
||||
if (vm.component.attendees.length === 0)
|
||||
vm.showAttendeesEditor = false;
|
||||
}
|
||||
|
||||
function save(form, options) {
|
||||
if (form.$valid) {
|
||||
vm.component.$save(options)
|
||||
|
||||
Reference in New Issue
Block a user