Show warning when opening files externally #2478

Merged
zxawry merged 3 commits from external-resources into master 2019-05-15 18:40:03 +02:00
zxawry commented 2019-05-12 20:15:58 +02: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: #1761

What is the current behavior?

Clicking the open button, opens file externally with the associated app if they exist, otherwise the file directory is opened.

What is the new behavior?

Clicking the open button or external links, opens a modal warning user about the consequences. We proceed to open the file or link if user confirms.

Other information

I'm not sure if it's a breaking change but I renamed openExternalLink modal to openExternalResource

## 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) - [ ] 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 - [x] Feature - [ ] Code style update (formatting) - [ ] Refactoring (no functional changes) - [ ] Documentation changes - [ ] Other - Please describe: ## Fixes Issue Number: #1761 ## What is the current behavior? Clicking the open button, opens file externally with the associated app if they exist, otherwise the file directory is opened. ## What is the new behavior? Clicking the open button or external links, opens a modal warning user about the consequences. We proceed to open the file or link if user confirms. ## Other information I'm not sure if it's a breaking change but I renamed `openExternalLink` modal to `openExternalResource` <!-- If this PR contains a breaking change, please describe the impact and solution strategy for existing applications below. -->
neb-b commented 2019-05-12 20:38:41 +02:00 (Migrated from github.com)

@zxawry Thanks for the PR! Ill give it a better look/test tonight! 🙂

@zxawry Thanks for the PR! Ill give it a better look/test tonight! 🙂
neb-b commented 2019-05-13 20:45:36 +02:00 (Migrated from github.com)

This looks good! I'll merge after we release 0.32.0

This looks good! I'll merge after we release 0.32.0
zxawry commented 2019-05-14 06:55:01 +02:00 (Migrated from github.com)

Thank you, sir!

Thank you, sir!
tzarebczan commented 2019-05-15 18:44:06 +02:00 (Migrated from github.com)

@zxawry , congrats on the merged PR!

Can we show you some appreciation for the contribution?

@zxawry , congrats on the merged PR! Can we show you [some appreciation](https://LBRY.com/faq/appreciation) for the contribution?
zxawry commented 2019-05-17 09:31:20 +02:00 (Migrated from github.com)

Thank you, sir! I'm glad it's merged.

Thank you, sir! I'm glad it's merged.
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#2478
No description provided.