|
@@ -65,18 +65,20 @@
|
|
|
<div class="ml-auto d-inline-flex align-items-center">
|
|
|
<label class="mr-2 my-0 text-secondary">Show</label>
|
|
|
<select id="eventTypes"
|
|
|
- class="form-control form-control-sm w-150"
|
|
|
+ class="form-control form-control-sm w-180"
|
|
|
v-model="eventTypes"
|
|
|
v-on:change="refreshEvents()">
|
|
|
- <option value="APPOINTMENTS">Appointments</option>
|
|
|
+ <option value="APPOINTMENTS">Active Appointments</option>
|
|
|
+ <option value="APPOINTMENTS_ALL">All Appointments</option>
|
|
|
<option value="PRO_AVAILABILITY">Pro Availability</option>
|
|
|
- <option value="BOTH">Both</option>
|
|
|
+ <option value="BOTH">Pro Availability & Active appointments</option>
|
|
|
+ <option value="BOTH_ALL">Pro Availability & All Appointments</option>
|
|
|
</select>
|
|
|
</div>
|
|
|
<div class="ml-3 d-inline-flex align-items-center">
|
|
|
<label class="mr-2 my-0 text-secondary">Timezone</label>
|
|
|
<select id="eventTz" name="timeZone"
|
|
|
- class="form-control form-control-sm w-150"
|
|
|
+ class="form-control form-control-sm w-180"
|
|
|
v-model="timezone">
|
|
|
<option value="EASTERN" selected>Eastern</option>
|
|
|
<option value="CENTRAL">Central</option>
|
|
@@ -519,18 +521,27 @@
|
|
|
if(events.hasOwnProperty(e) && self.proMeta[events[e].proUid]) {
|
|
|
let ev = events[e], meta = self.proMeta[ev.proUid];
|
|
|
if(ev.type === 'appointment') {
|
|
|
- if(self.eventTypes === 'APPOINTMENTS' || self.eventTypes === 'BOTH') {
|
|
|
+ if(self.eventTypes.indexOf('APPOINTMENTS') === 0 || self.eventTypes.indexOf('BOTH') === 0) {
|
|
|
ev.backgroundColor = meta.bc;
|
|
|
ev.borderColor = meta.bc;
|
|
|
ev.textColor = meta.fc;
|
|
|
ev.initials = meta.initials;
|
|
|
ev.display = 'block';
|
|
|
ev.editable = true;
|
|
|
- displayEvents.push(ev);
|
|
|
+
|
|
|
+ // active/all
|
|
|
+ if(['CANCELLED', 'COMPLETED', 'ABANDONED'].indexOf(ev.status) !== -1) {
|
|
|
+ if(self.eventTypes === 'APPOINTMENTS_ALL' || self.eventTypes === 'BOTH_ALL') {
|
|
|
+ displayEvents.push(ev);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ displayEvents.push(ev);
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
else {
|
|
|
- if(self.eventTypes === 'PRO_AVAILABILITY' || self.eventTypes === 'BOTH') {
|
|
|
+ if(self.eventTypes === 'PRO_AVAILABILITY' || self.eventTypes.indexOf('BOTH') === 0) {
|
|
|
ev.backgroundColor = meta.ac;
|
|
|
ev.borderColor = meta.bc;
|
|
|
ev.textColor = meta.bc;
|
|
@@ -563,6 +574,9 @@
|
|
|
if (arg.event.extendedProps.type === 'availability') {
|
|
|
classes.push('availability');
|
|
|
}
|
|
|
+ if (['CANCELLED', 'COMPLETED', 'ABANDONED'].indexOf(arg.event.extendedProps.status) !== -1) {
|
|
|
+ classes.push('inactive-appointment');
|
|
|
+ }
|
|
|
return classes;
|
|
|
},
|
|
|
loading: function(bool) {
|