Skip to content

Commit

Permalink
fix: Fix volume snapshots paging
Browse files Browse the repository at this point in the history
Signed-off-by: leoliu <leoliu@yunify.com>
  • Loading branch information
leoliu committed Aug 3, 2020
1 parent 445c8eb commit 1f4aa9c
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,17 +32,22 @@ export default class PVCSnapshots extends Component {
store = new VolumeSnapshotStore()

componentDidMount() {
this.fetchData()
}

fetchData = params => {
const { detailStore } = this.props
const { cluster, namespace, name } = detailStore.detail
this.store.fetchList({
cluster,
namespace,
persistentVolumeClaimName: name,
...params,
})
}

handlePagination = page => {
this.store.fetchList({ page })
this.fetchData({ page })
}

renderSnapshot(snapshot) {
Expand Down

0 comments on commit 1f4aa9c

Please sign in to comment.