Zren / plasma-applet-eventcalendar

https://store.kde.org/p/998901/
469 stars 93 forks source link

[Google] Open events in view mode instead of edit #251

Closed theblackhole closed 2 years ago

theblackhole commented 3 years ago

This PR updates the Google Calendar event url to open it in view mode (a modal with event's details) instead of edit mode. This prevents unwanted modifications, especially in workspace environment as we deal with mostly RSVP events from colleagues:

If you want to keep a shortcut to edit the event, I suggest to add a pencil button for this purpose (not in this PR, I don't know how to do it).

Zren commented 3 years ago

Hmm, seems /calendar/event?action=VIEW&eid=... redirects to /calendar/u/0/r/month?eid=...&sf=true to view the event popup in the Month view.

I'm can understand the need for an option, but I'll probably leave the default on editing the event.

Zren commented 2 years ago

Looks like the current regex replacement code is editing the https://www.google.com/calendar/event?eid=...&ctz=Etc/UTC which redirects to the web month view like this PR does.

I've added a config toggle in the Google Calendar config tab switch between opening the event view or month view.