Skip to content

Commit

Permalink
Disable the "Generate Zoom Meeting" checkbox if they don't have a zoo…
Browse files Browse the repository at this point in the history
…m account connected.
  • Loading branch information
MelissaAutumn committed May 8, 2024
1 parent 56b8650 commit a8f361b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion frontend/src/components/ScheduleCreation.vue
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@
<input
type="checkbox"
:checked="scheduleInput.meeting_link_provider === meetingLinkProviderType.zoom"
:disabled="!scheduleInput.active"
:disabled="!scheduleInput.active || !hasZoomAccount"
@change="toggleZoomLinkCreation"
class="size-5 rounded-md"
/>
Expand Down Expand Up @@ -369,11 +369,13 @@ import AlertBox from '@/elements/AlertBox';
import SwitchToggle from '@/elements/SwitchToggle';
import ToolTip from '@/elements/ToolTip.vue';
import { useCalendarStore } from '@/stores/calendar-store';
import { useExternalConnectionsStore } from '@/stores/external-connections-store';
import SnackishBar from '@/elements/SnackishBar.vue';
// component constants
const user = useUserStore();
const calendarStore = useCalendarStore();
const externalConnectionStore = useExternalConnectionsStore();
const { t } = useI18n();
const dj = inject('dayjs');
const call = inject('call');
Expand All @@ -385,6 +387,8 @@ const firstStep = scheduleCreationState.availability;
// component emits
const emit = defineEmits(['created', 'updated']);
const hasZoomAccount = computed(() => externalConnectionStore.zoom[0]);
// component properties
const props = defineProps({
calendars: Array, // list of user defined calendars
Expand Down

0 comments on commit a8f361b

Please sign in to comment.