瀏覽代碼

Fix follower/following lists resetting on back-navigation in web UI (#11986)

Fix #11452
master^2
Eugen Rochko 4 年之前
committed by GitHub
父節點
當前提交
9683e1dcf8
沒有發現已知的金鑰在資料庫的簽署中 GPG Key ID: 4AEE18F83AFDEB23
共有 4 個文件被更改,包括 14 次插入6 次删除
  1. +3
    -1
      app/javascript/mastodon/features/favourites/index.js
  2. +4
    -2
      app/javascript/mastodon/features/followers/index.js
  3. +4
    -2
      app/javascript/mastodon/features/following/index.js
  4. +3
    -1
      app/javascript/mastodon/features/reblogs/index.js

+ 3
- 1
app/javascript/mastodon/features/favourites/index.js 查看文件

@@ -27,7 +27,9 @@ class Favourites extends ImmutablePureComponent {
};

componentWillMount () {
this.props.dispatch(fetchFavourites(this.props.params.statusId));
if (!this.props.accountIds) {
this.props.dispatch(fetchFavourites(this.props.params.statusId));
}
}

componentWillReceiveProps (nextProps) {


+ 4
- 2
app/javascript/mastodon/features/followers/index.js 查看文件

@@ -40,8 +40,10 @@ class Followers extends ImmutablePureComponent {
};

componentWillMount () {
this.props.dispatch(fetchAccount(this.props.params.accountId));
this.props.dispatch(fetchFollowers(this.props.params.accountId));
if (!this.props.accountIds) {
this.props.dispatch(fetchAccount(this.props.params.accountId));
this.props.dispatch(fetchFollowers(this.props.params.accountId));
}
}

componentWillReceiveProps (nextProps) {


+ 4
- 2
app/javascript/mastodon/features/following/index.js 查看文件

@@ -40,8 +40,10 @@ class Following extends ImmutablePureComponent {
};

componentWillMount () {
this.props.dispatch(fetchAccount(this.props.params.accountId));
this.props.dispatch(fetchFollowing(this.props.params.accountId));
if (!this.props.accountIds) {
this.props.dispatch(fetchAccount(this.props.params.accountId));
this.props.dispatch(fetchFollowing(this.props.params.accountId));
}
}

componentWillReceiveProps (nextProps) {


+ 3
- 1
app/javascript/mastodon/features/reblogs/index.js 查看文件

@@ -27,7 +27,9 @@ class Reblogs extends ImmutablePureComponent {
};

componentWillMount () {
this.props.dispatch(fetchReblogs(this.props.params.statusId));
if (!this.props.accountIds) {
this.props.dispatch(fetchReblogs(this.props.params.statusId));
}
}

componentWillReceiveProps(nextProps) {


Loading…
取消
儲存