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 show-selector not honoring option to split shows & anime #4625

Merged
merged 5 commits into from
Jul 11, 2018

Conversation

sharkykh
Copy link
Contributor

@sharkykh sharkykh commented Jul 7, 2018

  • Fix show-selector not honoring app.ANIME_SPLIT_HOME.
  • Remove sortedShowLists - unused since converting show-selector to Vue.

@sharkykh sharkykh added this to the 0.2.7 milestone Jul 7, 2018
@sharkykh sharkykh mentioned this pull request Jul 7, 2018
const lists = [
{ type: 'Shows', shows: [] },
{ type: 'Anime', shows: [] }
];

shows.forEach(show => {
const type = show.config.anime === true ? 1 : 0;
const type = animeSplitHome && show.config.anime ? 1 : 0;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Change this to Number(animeSplitHome && show.config.anime) as it'll return 1/0 depending on the boolean passed.

Copy link
Contributor Author

@sharkykh sharkykh Jul 8, 2018

Choose a reason for hiding this comment

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

I actually did that on my first draft of this code, but I feared it wasn't clear enough.
Edit: Updated code.

OmgImAlexis
OmgImAlexis previously approved these changes Jul 7, 2018
OmgImAlexis
OmgImAlexis previously approved these changes Jul 9, 2018
@sharkykh sharkykh force-pushed the bugfix/show-selector branch from 13c3595 to 7b07551 Compare July 10, 2018 18:34
@medariox
Copy link
Contributor

Python code LGTM, JS should be fine too? @OmgImAlexis ?

@OmgImAlexis OmgImAlexis merged commit 2e419f4 into develop Jul 11, 2018
@OmgImAlexis OmgImAlexis deleted the bugfix/show-selector branch July 11, 2018 23:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants