|
|
@ -51,7 +51,7 @@ class UpcomingEventViewItem: NSCollectionViewItem { |
|
|
|
meetingLink = link |
|
|
|
meetingLink = link |
|
|
|
|
|
|
|
|
|
|
|
setupLabels(title, isCancelled) |
|
|
|
setupLabels(title, isCancelled) |
|
|
|
setupSupplementaryButton(link) |
|
|
|
setupSupplementaryButton(link, cancellationState: isCancelled) |
|
|
|
setCalendarButtonTitle(buttonTitle: subtitle, cancellationState: isCancelled) |
|
|
|
setCalendarButtonTitle(buttonTitle: subtitle, cancellationState: isCancelled) |
|
|
|
calendarColorView.layer?.backgroundColor = color.cgColor |
|
|
|
calendarColorView.layer?.backgroundColor = color.cgColor |
|
|
|
} |
|
|
|
} |
|
|
@ -71,8 +71,8 @@ class UpcomingEventViewItem: NSCollectionViewItem { |
|
|
|
eventTitleLabel.toolTip = title |
|
|
|
eventTitleLabel.toolTip = title |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private func setupSupplementaryButton(_ meetingURL: URL?) { |
|
|
|
private func setupSupplementaryButton(_ meetingURL: URL?, cancellationState: Bool) { |
|
|
|
guard meetingURL != nil else { |
|
|
|
guard meetingURL != nil, cancellationState == false else { |
|
|
|
zoomButton.image = nil |
|
|
|
zoomButton.image = nil |
|
|
|
supplementaryButtonWidthConstraint.constant = 0.0 |
|
|
|
supplementaryButtonWidthConstraint.constant = 0.0 |
|
|
|
return |
|
|
|
return |
|
|
|