Skip to content

Commit

Permalink
add message for success sync API call
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 May 13, 2024
1 parent 77fd578 commit 1a970a5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/models/backup.js
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,11 @@ export default {
*syncBackupVolume({
payload,
}, { call }) {
yield call(syncVolume, payload.name)
const backVolName = payload.name
const resp = yield call(syncVolume, backVolName)
if (resp && resp.status === 200) {
message.success(`Successfully synced backup volume ${backVolName}`, 3)
}
},
*bulkCreateVolume({
payload,
Expand Down

0 comments on commit 1a970a5

Please sign in to comment.