discourse/app
Andrei Prigorshnev 4d5f5a67c1
FIX: the empty state message was appearing in wrong moments on the user bookmarks stage (#14127)
Steps to reproduce:

1. Go to activity/bookmarks
2. Search for something that isn’t in your bookmarks, so you get no results
3. Navigate away and then click "Bookmarked" on the sidebar or open the user menu and click the View All Bookmarks button on the bottom of the bookmarks tab, and you get the message "You haven't bookmarked anything yet". 

This commit fixes the problem. We have a controller with a query parameter q that contains a search query. And we also have a property searchTerm that is bound to the search box on the page and mirrors the value in q. We were using a value from searchTerm when querying the server, but ember controllers are singletons so the searchTerm value persisted between page visits and leaded to this bug.

To make things work properly, we should be using the value from q everywhere except two places when we copy a value from q to searchTerm and vice versa.
2021-08-24 23:40:08 +04:00
..
assets FIX: the empty state message was appearing in wrong moments on the user bookmarks stage (#14127) 2021-08-24 23:40:08 +04:00
controllers FEATURE: Make allow_uploaded_avatars accept TL (#14091) 2021-08-24 10:46:28 +03:00
helpers DEV: Allow us to use Ember CLI assets in production 2021-08-05 08:32:33 -04:00
jobs DEV: decrease webhook timeout and move to 'low' priority queue. (#14038) 2021-08-13 10:41:02 +05:30
mailers UX: suspend forever time period messages (#13776) 2021-07-20 14:42:08 +04:00
models FEATURE: Make allow_uploaded_avatars accept TL (#14091) 2021-08-24 10:46:28 +03:00
serializers REVERT "FIX: do not show private group flair on user avatars" (#13991) 2021-08-10 17:25:11 +05:30
services DEV: don't merge email address if target user is not human. (#13915) 2021-08-03 10:04:35 +05:30
views DEV: adds server:after-body-open (#14106) 2021-08-24 14:35:44 +02:00