Skip to content

Commit

Permalink
revert mis-delete return
Browse files Browse the repository at this point in the history
Signed-off-by: andy.lee <andy.lee@suse.com>
  • Loading branch information
a110605 committed Jul 2, 2024
1 parent b9d1f54 commit b21926d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/routes/volume/detail/Snapshots.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,15 @@ class Snapshots extends React.Component {
...this.state,
createBackModalVisible: true,
})
return
}
if (action.type === 'toggleShowRemoved') {
this.props.dispatch({
type: 'snapshotModal/setShowRemoved',
payload: !this.props.showRemoved,
})
this.refs.Snapshot.showReomve()
return
}
if (action.type === 'snapshotBackup') {
this.setState({
Expand All @@ -52,6 +54,7 @@ class Snapshots extends React.Component {
snapshotBackupUrl: action.payload && action.payload.volume && action.payload.volume.actions && action.payload.volume.actions.snapshotBackup ? action.payload.volume.actions.snapshotBackup : '',
snapshotListUrl: action.payload && action.payload.volume && action.payload.volume.actions && action.payload.volume.actions.snapshotList ? action.payload.volume.actions.snapshotList : '',
})
return
}

let additionalActions = []
Expand Down

0 comments on commit b21926d

Please sign in to comment.