From f3215a4d58f27ef5e8c9ef256b1f15a5495eebb4 Mon Sep 17 00:00:00 2001 From: Abhishek Banthia <8280282+n0shake@users.noreply.github.com> Date: Sun, 31 Mar 2024 14:35:47 -0400 Subject: [PATCH] Hide zoom button when the meeting is cancelled. --- Clocker/Panel/Upcoming Events/UpcomingEventViewItem.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Clocker/Panel/Upcoming Events/UpcomingEventViewItem.swift b/Clocker/Panel/Upcoming Events/UpcomingEventViewItem.swift index 91d4765..1a45243 100644 --- a/Clocker/Panel/Upcoming Events/UpcomingEventViewItem.swift +++ b/Clocker/Panel/Upcoming Events/UpcomingEventViewItem.swift @@ -51,7 +51,7 @@ class UpcomingEventViewItem: NSCollectionViewItem { meetingLink = link setupLabels(title, isCancelled) - setupSupplementaryButton(link) + setupSupplementaryButton(link, cancellationState: isCancelled) setCalendarButtonTitle(buttonTitle: subtitle, cancellationState: isCancelled) calendarColorView.layer?.backgroundColor = color.cgColor } @@ -71,8 +71,8 @@ class UpcomingEventViewItem: NSCollectionViewItem { eventTitleLabel.toolTip = title } - private func setupSupplementaryButton(_ meetingURL: URL?) { - guard meetingURL != nil else { + private func setupSupplementaryButton(_ meetingURL: URL?, cancellationState: Bool) { + guard meetingURL != nil, cancellationState == false else { zoomButton.image = nil supplementaryButtonWidthConstraint.constant = 0.0 return