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

Chore: extract file loading icons to be used globally throughout preview #490

Merged
merged 1 commit into from
Nov 28, 2017
Merged

Chore: extract file loading icons to be used globally throughout preview #490

merged 1 commit into from
Nov 28, 2017

Conversation

jeremypress
Copy link
Contributor

No description provided.

case 'flv':
this.icon = ICON_FILE_MEDIA;
this.icon = getIconFromExtension(file.extension);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is here to maintain current behavior. Eventually we can just rely on the setup on base viewer and then fall back if needed

Copy link
Contributor

@JustinHoldstock JustinHoldstock left a comment

Choose a reason for hiding this comment

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

Dang, not bad. The only thing I could think of that could clean this up, the last bit, is to move the extensions to a config file (or use extensions.js)

@jeremypress
Copy link
Contributor Author

@JustinHoldstock I don't want to use extensions because that's used for determining which viewers we want to use. I'd like to keep it here for now and if our list expands greatly we can break it out. Thanks to @tonyjin on the map adding one liners

@jeremypress jeremypress merged commit ec2fc3b into box:master Nov 28, 2017
@jeremypress jeremypress deleted the file-icons branch November 28, 2017 19:25
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