Closed MrSpiffyClean closed 4 years ago
In order to check if defaults have been changed, look into how processData sets the default countries (line 439) and adapt from there.
:heavy_check_mark: Change changeURL in order to detect whether defaults have been set
Need to test this to check if works/borks stuff.
New idea. Having a button to restore to defaults (in the middle of the select all / deselect all). Since pressing a region and then going back restores the default, maybe not needed.
:heavy_check_mark: Investigate weird performance issue (seems slower now than just calling changeURL without arguments) with how I'm now calling changeURL
Remembered to check the actual live page if my perceived performance issue (slight 1 second pause between button presses) was there and it turns out it is, which means my code isn't directly responsible for it. It is something to look into forward.
:heavy_check_mark: Deal with Select All / Deselect All buttons (first idea is having just a new URL parameter with select=all/none) The buttons have the basic functionality, however two things need to be solved before the pull request:
select
parameterThe tasks were added to the first post.
The createURL event seems to fire before the actual renderization/selection of the buttons/countries. Using the checkbox variable to halt all being added should work.
:heavy_check_mark: Changing Region after selecting all doesn't update correctly the URL (the url still thinks everything is selected, even though it is not) :heavy_check_mark: Making Vue.js recognize the new select parameter
The code should now be ready for a pull request. Tomorrow, after some basic checks.
In case I decide to add the "restore to defaults" button, a thing of note is that changing the selectedCountries array also changes everything else, so that's pretty much how to do it.
Basic to-do list, in order to document remaining changes.
2020-05-07
select
parameter