Skip to content

Commit 80738d5

Browse files
committed
fix(status): add second arg for error message action
1 parent b30e2b8 commit 80738d5

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

lib/manager/reducers/status.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ const config = (state = {
101101
// Status Modal
102102
case 'SET_ERROR_MESSAGE':
103103
return update(state, {
104-
modal: {$set: {title: 'Warning!', body: action.message}},
104+
modal: {$set: {title: 'Warning!', body: action.message, action: action.action}},
105105
message: {$set: null}
106106
})
107107
case 'RECEIVED_FETCH_FEED':
@@ -114,7 +114,10 @@ const config = (state = {
114114
return update(state, {modal: {$set: null}})
115115
case 'CREATED_SNAPSHOT':
116116
return update(state, {
117-
modal: {$set: {title: 'Snapshot Created', body: `New Snapshot "${action.name}" created. It will be accessible from the "Editor Snapshots" tab in the main Feed Source page.`}},
117+
modal: {$set: {
118+
title: 'Snapshot Created',
119+
body: `New snapshot "${action.name}" created. It will be accessible from the "Editor Snapshots" tab in the main Feed Source page.`
120+
}},
118121
message: {$set: null}
119122
})
120123
case 'RESTORED_SNAPSHOT':

0 commit comments

Comments
 (0)