This is a WIP to provide the ability to search periods. The text field for searching is set up, but I still need to figure out how to return the correct array of periods to loop through when displaying periods. I'm finding this tricky because you must filter periods by occurrence and then by the search query if/when provided. Currently, I'm confused about how to perform functions, in a watcher, on an array created in a computed property, then have the array in the watcher be what is displayed.
This is a WIP to provide the ability to search periods. The text field for searching is set up, but I still need to figure out how to return the correct array of periods to loop through when displaying periods. I'm finding this tricky because you must filter periods by occurrence and then by the search query if/when provided. Currently, I'm confused about how to perform functions, in a watcher, on an array created in a computed property, then have the array in the watcher be what is displayed.