UX: Only set user bookmarks loading state when loading (#17728)

Follow-up to 6bb77d3055
This commit is contained in:
Alan Guo Xiang Tan 2022-07-29 11:11:01 +08:00 committed by GitHub
parent 6bb77d3055
commit a6e815f243
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -15,7 +15,7 @@ export default Controller.extend({
application: controller(),
user: controller(),
loading: true,
loading: false,
loadingMore: false,
permissionDenied: false,
inSearchMode: notEmpty("q"),

View File

@ -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) {