mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-20 14:43:49 +00:00
rdv: available calendar ranges
This commit is contained in:
@@ -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()) {
|
||||
|
@@ -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(); }
|
||||
|
Reference in New Issue
Block a user