Browse Source

Hide zoom button when the meeting is cancelled.

master
Abhishek Banthia 9 months ago
parent
commit
f3215a4d58
  1. 6
      Clocker/Panel/Upcoming Events/UpcomingEventViewItem.swift

6
Clocker/Panel/Upcoming Events/UpcomingEventViewItem.swift

@ -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

Loading…
Cancel
Save