ws4kp icon indicating copy to clipboard operation
ws4kp copied to clipboard

Feature Request: Share Button

Open antgiant opened this issue 2 years ago • 3 comments

I love this and wanted the ability to pre-setup a link to share with others for their location, but that doesn't seem to be possible currently. Would you be willing to add a share button that lets you include the location and preference data? Even just something as simple as a basic as a dump of current form state in URL form would be great. For instance https://battaglia.ddns.net/twc/?txtAddress=[address]&radEnglish=[selection]&chkAutoRefresh=[true/false]&radThemes=[selection]&radScroll=[selection]&radScrollText=[text]&chkScrollHazardText=[true/false]&fullScreen=[true/false]

antgiant avatar Jun 29 '23 14:06 antgiant

Hello @antgiant,

Not a bad idea, I don't have the time to work on this exactly the way you explained, but there is a way to share your location manually. Please refer to https://github.com/vbguyny/ws4kp/issues/68

vbguyny avatar Jul 03 '23 15:07 vbguyny

If I find time to add it would you be open to a pull request?

My thought is to add an on page load hook that takes the URL parameters and moves them to the form locations in a way that triggers the existing onChange hooks. Should be minimally invasive while accomplishing the goal.

Then adding a share button that simply displays current form state as a url.

antgiant avatar Jul 04 '23 16:07 antgiant

Sure ☺️

vbguyny avatar Jul 04 '23 23:07 vbguyny