- remove occurances of jitsi-launch as AToCal is more generic

- translate internal documentation
- fix cancelUrl
This commit is contained in:
stefan.tollkuehn committed 2026-10-08 11:04:33 +02:00
1 parent b4fc9db09a
commit e985c66908
2 files changed
+10 -12

No files matched your search

+9 -11
View File
@@ -31,7 +31,7 @@ class CalendarController extends Controller
private const REMINDER_TRIGGER = '-PT15M'; private const REMINDER_TRIGGER = '-PT15M';
/* /*
* datetime-local format as sent by jitsi-launch, * datetime-local format as sent by external application,
* e.g. "2026-10-07T14:15". * e.g. "2026-10-07T14:15".
*/ */
private const DATETIME_LOCAL = 'Y-m-d\TH:i'; private const DATETIME_LOCAL = 'Y-m-d\TH:i';
@@ -63,10 +63,9 @@ class CalendarController extends Controller
* The route itself requires an authenticated Nextcloud user. * The route itself requires an authenticated Nextcloud user.
* If the user is not authenticated, Nextcloud's normal * If the user is not authenticated, Nextcloud's normal
* authentication flow takes over before the controller executes. * authentication flow takes over before the controller executes.
*/ *
/* * NoCSRFRequired: Page will be called by link from external application
* NoCSRFRequired: Seite wird per Link aus dem Jitsi-Launcher * browser does not send request token, yet.
* aufgerufen – der Browser sendet noch kein Request-Token.
*/ */
#[NoAdminRequired] #[NoAdminRequired]
#[NoCSRFRequired] #[NoCSRFRequired]
@@ -94,10 +93,9 @@ class CalendarController extends Controller
/** /**
* Create the calendar event. * Create the calendar event.
*/ *
/* * CSRF remains active: the confirmation page form
* CSRF bleibt aktiv: Das Formular der Bestätigungsseite * sends the request token along.
* sendet das Request-Token mit.
*/ */
#[NoAdminRequired] #[NoAdminRequired]
public function create( public function create(
@@ -161,8 +159,7 @@ class CalendarController extends Controller
private function findWritableCalendar(string $userId): ?ICreateFromString private function findWritableCalendar(string $userId): ?ICreateFromString
{ {
/* /*
* IManager kennt keine getCalendarsForUser() – * IManager calendars are queried via the principal URI.
* Kalender werden über die Principal-URI abgefragt.
*/ */
$principalUri = 'principals/users/' . $userId; $principalUri = 'principals/users/' . $userId;
@@ -198,6 +195,7 @@ class CalendarController extends Controller
'location' => $data['location'], 'location' => $data['location'],
'url' => $data['url'], 'url' => $data['url'],
'error' => $error, 'error' => $error,
'cancelUrl' => $this->urlGenerator->getAbsoluteURL('/'),
'createUrl' => $this->urlGenerator->linkToRoute( 'createUrl' => $this->urlGenerator->linkToRoute(
Application::APP_ID . '.calendar.create' Application::APP_ID . '.calendar.create'
), ),
+1 -1
View File
@@ -143,7 +143,7 @@ $h = static function (string $value): string {
</button> </button>
<a <a
href="<?php $urlGenerator->getAbsoluteURL('/') ?>" href="<?= $h($_['cancelUrl']) ?>"
class="secondary" class="secondary"
> >
Cancel Cancel