Except in Kolab, folder management has nothing to do with calendars; make that menu item conditional
This commit is contained in:
parent
e574f03669
commit
692c9e80c1
2 changed files with 5 additions and 2 deletions
|
@ -225,6 +225,8 @@ class calendar extends rcube_plugin
|
|||
// initialize attendees autocompletion
|
||||
rcube_autocomplete_init();
|
||||
|
||||
$this->rc->output->set_env('calendar.driver', $this->rc->config->get('calendar_driver'), false);
|
||||
|
||||
$this->rc->output->send("calendar.calendar");
|
||||
}
|
||||
|
||||
|
|
|
@ -33,8 +33,9 @@
|
|||
<ul>
|
||||
<li><roundcube:button command="calendar-edit" label="calendar.edit" classAct="active" /></li>
|
||||
<li><roundcube:button command="calendar-remove" label="calendar.remove" classAct="active" /></li>
|
||||
<li class="separator_below"></li>
|
||||
<li><roundcube:button command="folders" task="settings" type="link" label="managefolders" classAct="active" /></li>
|
||||
<roundcube:if condition="env:calendar.driver == 'kolab'" />
|
||||
<li class="separator_above"><roundcube:button command="folders" task="settings" type="link" label="managefolders" classAct="active" /></li>
|
||||
<roundcube:endif />
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue