adding videocall via calendar action

This commit is contained in:
Hadi Nategh 2020-04-03 13:01:00 +02:00
parent 86940ce3f9
commit 610a223c00
3 changed files with 5 additions and 2 deletions

View File

@ -596,7 +596,7 @@ class addressbook_ui extends addressbook_bo
'caption' => lang('Schedule a call'),
'icon' => 'calendar',
'allowOnMultiple' => true,
'onExecute' => 'javaScript:app.addressbook.videoconference_scheduleCall',
'onExecute' => 'javaScript:app.addressbook.add_cal',
]
]
];

View File

@ -275,6 +275,8 @@ var AddressbookApp = /** @class */ (function (_super) {
}
var extra = {};
extra[_action.data && _action.data.url && _action.data.url.indexOf('owner') > 0 ? 'owner' : 'participants'] = ids;
if (_action.id === 'schedule_call')
extra['videoconference'] = 1;
// Use framework to add calendar entry
egw.open('', 'calendar', 'add', extra);
}

View File

@ -321,9 +321,10 @@ class AddressbookApp extends EgwApp
}
var extra = {};
extra[_action.data && _action.data.url && _action.data.url.indexOf('owner') > 0 ? 'owner' : 'participants'] = ids;
if (_action.id === 'schedule_call') extra['videoconference'] = 1;
// Use framework to add calendar entry
egw.open('','calendar','add',extra);
egw.open('','calendar','add', extra);
}
}