Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cover image #1012

Merged
merged 5 commits into from
Mar 23, 2022
Merged

Cover image #1012

merged 5 commits into from
Mar 23, 2022

Conversation

litvinets
Copy link
Contributor

  1. fix cover image for application/ map/ desktop view
  2. new constants creared
  3. code refactoring
  4. fix for cover image displaying for map view

@litvinets litvinets requested a review from dmitryy90 March 23, 2022 11:47
@@ -43,7 +47,7 @@ export class WorkshopCardComponent implements OnInit, OnDestroy {
@Input() isCreateApplicationView = false;
@Input() icons: {};
@Input() set pendingApplications(applications: Application[]) {
if (applications) {
if (applications?.length) {
this.pendingApplicationAmount = applications.filter((application: Application) => {
return (application.workshopId === this.workshop.workshopId && application.status === ApplicationStatus.Pending);
}).length;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this.pendingApplicationAmount = applications && applications.filter || 0;

@litvinets litvinets merged commit def6b7c into develop Mar 23, 2022
@litvinets litvinets deleted the Cover-image branch March 23, 2022 15:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants