Add selectDefaultLanguage for publishes #3481

Closed
Yamboy1 wants to merge 2 commits from master into master
Yamboy1 commented 2020-01-13 08:23:31 +01:00 (Migrated from github.com)

PR Checklist

Please check all that apply to this PR using "x":

  • I have checked that this PR is not a duplicate of an existing PR (open, closed or merged)
  • I have checked that this PR does not introduce a breaking change
  • This PR introduces breaking changes and I have provided a detailed explanation below

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting)
  • Refactoring (no functional changes)
  • Documentation changes
  • Other - Please describe:

Fixes

Issue Number: #3479

What is the current behavior?

When you edited a publish, the language dropdown on the publish form didn't default to the same language as the original claim

What is the new behavior?

The dropdown does default to the same language as the original claim.

Other information

Would it be worthwhile moving selectDefaultLanguage to lbry-redux?

## PR Checklist <!-- For the checkbox formatting to work properly, make sure there are no spaces on either side of the "x" --> Please check all that apply to this PR using "x": - [x] I have checked that this PR is not a duplicate of an existing PR (open, closed or merged) - [x] I have checked that this PR does not introduce a breaking change - [ ] This PR introduces breaking changes and I have provided a detailed explanation below ## PR Type What kind of change does this PR introduce? - [x] Bugfix - [ ] Feature - [ ] Code style update (formatting) - [ ] Refactoring (no functional changes) - [ ] Documentation changes - [ ] Other - Please describe: ## Fixes Issue Number: #3479 ## What is the current behavior? When you edited a publish, the language dropdown on the publish form didn't default to the same language as the original claim ## What is the new behavior? The dropdown does default to the same language as the original claim. ## Other information Would it be worthwhile moving `selectDefaultLanguage` to `lbry-redux`? <!-- If this PR contains a breaking change, please describe the impact and solution strategy for existing applications below. -->
neb-b (Migrated from github.com) requested changes 2020-01-13 16:41:56 +01:00
neb-b (Migrated from github.com) left a comment

Thank you for the PR! Just one small comment then it's good to go! 🙂

Thank you for the PR! Just one small comment then it's good to go! 🙂
neb-b (Migrated from github.com) commented 2020-01-13 16:40:50 +01:00

Please add this to redux/selectors/settings

Please add this to `redux/selectors/settings`
tzarebczan commented 2020-01-13 18:20:16 +01:00 (Migrated from github.com)

Thanks for the PR @Yamboy1 , see comments. Can we show you some appreciation?

Thanks for the PR @Yamboy1 , see comments. Can we show you some [appreciation](https://lbry.com/faq/appreciation)?
Yamboy1 (Migrated from github.com) reviewed 2020-01-13 20:44:12 +01:00
Yamboy1 (Migrated from github.com) commented 2020-01-13 20:44:12 +01:00

wouldn't it be better in redux/selectors/publish as it's specific to the publish page?

wouldn't it be better in `redux/selectors/publish` as it's specific to the publish page?
Yamboy1 commented 2020-01-13 20:48:17 +01:00 (Migrated from github.com)

Sounds good @tzarebczan, responded to the comment

Sounds good @tzarebczan, responded to the comment
kauffj (Migrated from github.com) reviewed 2020-01-13 21:19:11 +01:00
@ -29,4 +18,1 @@
needsYTAuth: boolean,
fetchAccessToken: () => void,
accessToken: string,
};
kauffj (Migrated from github.com) commented 2020-01-13 21:19:10 +01:00

this can overwrite an already set language

this can overwrite an already set language
Yamboy1 (Migrated from github.com) reviewed 2020-01-13 22:09:04 +01:00
@ -29,4 +18,1 @@
needsYTAuth: boolean,
fetchAccessToken: () => void,
accessToken: string,
};
Yamboy1 (Migrated from github.com) commented 2020-01-13 22:09:04 +01:00

What do you mean? It should take into account the original language that was set: a4cdca9bbc (diff-c104ac6e73d6345cf832072a703f7051R13)

What do you mean? It should take into account the original language that was set: https://github.com/lbryio/lbry-desktop/pull/3481/files/a4cdca9bbc2ff74b9c5bc31012fdf04efce63ade#diff-c104ac6e73d6345cf832072a703f7051R13
Yamboy1 (Migrated from github.com) reviewed 2020-01-14 16:00:46 +01:00
Yamboy1 (Migrated from github.com) commented 2020-01-14 16:00:46 +01:00

@seanyesmunt

@seanyesmunt
Yamboy1 (Migrated from github.com) reviewed 2020-01-14 16:00:52 +01:00
@ -29,4 +18,1 @@
needsYTAuth: boolean,
fetchAccessToken: () => void,
accessToken: string,
};
Yamboy1 (Migrated from github.com) commented 2020-01-14 16:00:51 +01:00

@kauffj

@kauffj
neb-b (Migrated from github.com) reviewed 2020-01-14 16:51:08 +01:00
neb-b (Migrated from github.com) commented 2020-01-14 16:51:07 +01:00

Yes, you are correct.

Yes, you are correct.
neb-b commented 2020-01-14 16:58:23 +01:00 (Migrated from github.com)

@Yamboy1 I'm starting to think that we should just fix selectPublishFormValues to make sure it includes in the publish language. I think that should fix it and then we don't need an effect to set it.

@Yamboy1 I'm starting to think that we should just fix `selectPublishFormValues` to make sure it includes in the publish language. I think that should fix it and then we don't need an effect to set it.
Yamboy1 commented 2020-01-15 01:53:15 +01:00 (Migrated from github.com)
See lbryio/lbry-redux#260

Pull request closed

Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: LBRYCommunity/lbry-desktop#3481
No description provided.