Skip to content

Commit

Permalink
Hide zoom button when the meeting is cancelled.
Browse files Browse the repository at this point in the history
  • Loading branch information
n0shake committed Mar 31, 2024
1 parent 74a1511 commit f3215a4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Clocker/Panel/Upcoming Events/UpcomingEventViewItem.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand All @@ -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
Expand Down

0 comments on commit f3215a4

Please sign in to comment.