UX: Only set user bookmarks loading state when loading (#17728)
Follow-up to 6bb77d3055
This commit is contained in:
parent
6bb77d3055
commit
a6e815f243
|
@ -15,7 +15,7 @@ export default Controller.extend({
|
|||
|
||||
application: controller(),
|
||||
user: controller(),
|
||||
loading: true,
|
||||
loading: false,
|
||||
loadingMore: false,
|
||||
permissionDenied: false,
|
||||
inSearchMode: notEmpty("q"),
|
||||
|
|
|
@ -25,6 +25,8 @@ export default DiscourseRoute.extend({
|
|||
bookmarkListScrollPosition: null,
|
||||
});
|
||||
|
||||
controller.set("loading", true);
|
||||
|
||||
return this._loadBookmarks(params)
|
||||
.then((response) => {
|
||||
if (!response.user_bookmark_list) {
|
||||
|
|
Loading…
Reference in New Issue