rdv: available calendar ranges

This commit is contained in:
nobohan
2021-08-19 15:19:25 +02:00
parent 0457ee2b8d
commit 65bce1aacb
6 changed files with 59 additions and 7 deletions

View File

@@ -19,9 +19,9 @@
:options="options">
</VueMultiselect>
</div>
<div>
<input type="checkbox" id="myCalendar" v-model="showMyCalendarWidget" />
<label for="checkbox">{{ $t('show_my_calendar') }}</label>
<div class="form-check">
<input type="checkbox" id="myCalendar" class="form-check-input" v-model="showMyCalendarWidget" />
<label class="form-check-label" for="myCalendar">{{ $t('show_my_calendar') }}</label>
</div>
</template>
<script>
@@ -151,7 +151,7 @@ export default {
transName(value) {
return `${value.username}`;
},
coloriseSelectedValues() { //TODO cette function doit être exécutée au bon moment, après sélection (normalement avec @input)
coloriseSelectedValues() {
let tags = document.querySelectorAll('div.multiselect__tags-wrap')[0];
if (tags.hasChildNodes()) {

View File

@@ -4,7 +4,7 @@
* @returns {Promise} a promise containing all Calendar ranges objects
*/
const fetchCalendarRanges = () => {
const url = `/api/1.0/calendar/calendar-range.json?item_per_page=1000`;
const url = `/api/1.0/calendar/calendar-range-available.json`;
return fetch(url)
.then(response => {
if (response.ok) { return response.json(); }