瀏覽代碼

Fix #5632 - Reset column loading status after fetch fail (#5659)

master
Eugen Rochko 6 年之前
committed by Yamagishi Kazutoshi
父節點
當前提交
07f7192bc3
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. +2
    -1
      app/javascript/mastodon/reducers/notifications.js

+ 2
- 1
app/javascript/mastodon/reducers/notifications.js 查看文件

@@ -99,9 +99,10 @@ export default function notifications(state = initialState, action) {
switch(action.type) {
case NOTIFICATIONS_REFRESH_REQUEST:
case NOTIFICATIONS_EXPAND_REQUEST:
return state.set('isLoading', true);
case NOTIFICATIONS_REFRESH_FAIL:
case NOTIFICATIONS_EXPAND_FAIL:
return state.set('isLoading', true);
return state.set('isLoading', false);
case NOTIFICATIONS_SCROLL_TOP:
return updateTop(state, action.top);
case NOTIFICATIONS_UPDATE:


Loading…
取消
儲存