aboutsummaryrefslogtreecommitdiff
path: root/app/controllers/calendar/calendar.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/calendar/calendar.php')
-rw-r--r--app/controllers/calendar/calendar.php19
1 files changed, 9 insertions, 10 deletions
diff --git a/app/controllers/calendar/calendar.php b/app/controllers/calendar/calendar.php
index 983aaad..fdf2781 100644
--- a/app/controllers/calendar/calendar.php
+++ b/app/controllers/calendar/calendar.php
@@ -55,18 +55,10 @@ class Calendar_CalendarController extends AuthenticatedController
['data-dialog' => 'size=auto']
);
$actions->addLink(
- _('Kalender veröffentlichen'),
- $this->url_for('calendar/calendar/publish'),
- Icon::create('export'),
- ['data-dialog' => 'size=auto']
- );
- }
- if (!$schedule && Config::get()->CALENDAR_GROUP_ENABLE) {
- $actions->addLink(
_('Kalender teilen'),
- $this->url_for('calendar/calendar/share'),
+ $this->url_for('calendar/calendar/share_select'),
Icon::create('share'),
- ['data-dialog' => 'size=default']
+ ['data-dialog' => 'size=auto']
);
$actions->addLink(
_('Gruppen verwalten'),
@@ -776,6 +768,13 @@ class Calendar_CalendarController extends AuthenticatedController
}
}
+ public function share_select_action()
+ {
+ if (!Config::get()->CALENDAR_GROUP_ENABLE) {
+ $this->redirect($this->url_for('calendar/calendar/publish'));
+ }
+ }
+
public function share_action()
{
PageLayout::setTitle(_('Kalender teilen'));