Skip to content

Commit

Permalink
Disabled shared calendar creation for now.
Browse files Browse the repository at this point in the history
  • Loading branch information
tonioo committed Nov 28, 2020
1 parent 9674281 commit f34e3e8
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 11 deletions.
4 changes: 3 additions & 1 deletion frontend/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@
</li>
</ul>
</li>
<li class="nav-header"><translate>Shared calendars</translate></li>
<li v-if="sharedCalendars.length" class="nav-header">
<translate>Shared calendars</translate>
</li>
<li v-for="calendar in sharedCalendars" :key="calendar.pk" class="dropdown-submenu">
<a href="#" @click="toggleSharedCalendarMenu">
<span class="square" v-bind:style="{ 'background-color': calendar.color }"></span> {{ calendar.name }}
Expand Down
20 changes: 10 additions & 10 deletions frontend/src/components/CalendarForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,16 @@
<span v-if="formErrors['name']" class="help-block">{{ formErrors['name'][0] }}</span>
</div>
</div>
<div v-can="'modoboa_radicale.add_sharedcalendar'" class="row">
<div v-if="!calendar.pk" class="col-sm-3">
<div class="checkbox">
<label><input type="checkbox" v-model="shared"><translate>Shared?</translate></label>
</div>
</div>
<div class="col-sm-9">
<multiselect v-if="shared" :options="domains" label="name" v-model="calendar.domain" :placeholder="domainPlaceHolder"></multiselect>
</div>
</div>
<!-- <div v-can="'modoboa_radicale.add_sharedcalendar'" class="row"> -->
<!-- <div v-if="!calendar.pk" class="col-sm-3"> -->
<!-- <div class="checkbox"> -->
<!-- <label><input type="checkbox" v-model="shared"><translate>Shared?</translate></label> -->
<!-- </div> -->
<!-- </div> -->
<!-- <div class="col-sm-9"> -->
<!-- <multiselect v-if="shared" :options="domains" label="name" v-model="calendar.domain" :placeholder="domainPlaceHolder"></multiselect> -->
<!-- </div> -->
<!-- </div> -->
<h4><small><translate>Color</translate></small></h4>
<compact-picker v-model="calendar.color" />
<hr>
Expand Down

0 comments on commit f34e3e8

Please sign in to comment.