Inevio / GoogleCalendar

0 stars 0 forks source link

There is no way to edit a calendar #19

Closed jorge9200 closed 6 years ago

jorge9200 commented 6 years ago

We need a way to edit a calendar. We suggest this one (the easiest):

$('. calListLabel').on('contextmenu', function(){
  var contextMenu = api.menu()
  menu.addOption( "Edit calendar", launchEditCalendarView() )
  menu.addOption( "Remove calendar", removeCalendar() )
  menu.render()
});

This will trigger on right click on calendar objects.

umair-brainx commented 6 years ago

I have implemented the editing of calendar but when implementing the editing of user permission of calendar I am receiving two extra rows in method aclList screen shot 2018-03-06 at 3 03 37 pm

jorge9200 commented 6 years ago

show all ACL exccept the one with "etag":"\"00000000000000000000\""

umair-brainx commented 6 years ago

Google APIs don't allow to edit ACL with user own email. so I have added one more check so no we are allowing editing of user permissions except the one with "etag":"\"00000000000000000000\"" and except the one with currently logged in user email.

umair-brainx commented 6 years ago

@jorge9200 Edit Calendar Functionality along with user permissions has been completed. Kindly have a look and update me.