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

Fix switching between non-media and media templates #566

Merged
merged 2 commits into from
May 18, 2021

Conversation

jacobkeeler
Copy link
Contributor

Fixes #535

This PR is ready for review.

Testing Plan

Manually test switching between templates with various combinations of the MEDIA and NAVIGATION app types. Verify that app info is displayed properly.

Summary

Allows media apps to properly use the non-media template. Adds restrictions for MEDIA, NAV_FULLSCREEN_MAP, and WEB_VIEW templates based on app type.

Also removes redundant/unused app model fields.

CLA

Also adds restrictions for templates according to app type
Homogenize `trackIcon` and `mainImage` in media and nonMedia models
}
case 'NAV_FULLSCREEN_MAP':
{
return model.appType.indexOf('NAVIGATION') >= 0;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Also check if type is PROJECTION?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hmmm, a little surprised there isn't a specific template for that sort of thing, but it does look like PROJECTION should probably be allowed in this case, yeah

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