@@ -60,7 +60,7 @@ class Master extends Component {
60
60
* @return {undefined }
61
61
*/
62
62
setGlobalMessage = ( ) => {
63
- const { location } = this . props ;
63
+ const { history , location } = this . props ;
64
64
65
65
const queryParams = UrlUtils . _queryParams ( location . search ) ;
66
66
const messageKeys = Object . keys ( queryParams ) . filter (
@@ -73,7 +73,11 @@ class Master extends Component {
73
73
message [ key . match ( / \[ ( .* ) \] / ) . pop ( ) ] = queryParams [ key ] ;
74
74
} ) ;
75
75
76
- message . closed = ( ) => this . setState ( { message : { } } ) ;
76
+ message . closed = ( ) => {
77
+ this . setState ( { message : { } } ) ;
78
+
79
+ history . push ( location . pathname ) ;
80
+ } ;
77
81
78
82
this . setState ( { message } ) ;
79
83
} ;
@@ -178,11 +182,9 @@ class Master extends Component {
178
182
< Snackbar { ...globalMessage } />
179
183
) }
180
184
181
- { ! globalMessage &&
182
- message &&
183
- message . hasOwnProperty ( 'type' ) > 0 && (
184
- < Snackbar { ...message } />
185
- ) }
185
+ { message && message . hasOwnProperty ( 'type' ) > 0 && (
186
+ < Snackbar { ...message } />
187
+ ) }
186
188
187
189
{ alert && alert . hasOwnProperty ( 'type' ) > 0 && (
188
190
< Modal { ...alert } />
@@ -232,9 +234,12 @@ const styles = theme => ({
232
234
233
235
content : {
234
236
flex : 1 ,
235
- padding : theme . spacing . unit * 4 ,
237
+ padding : theme . spacing . unit ,
236
238
marginBottom : '5rem' ,
237
239
backgroundColor : theme . palette . grey [ '200' ] ,
240
+ [ theme . breakpoints . up ( 'sm' ) ] : {
241
+ padding : theme . spacing . unit * 4 ,
242
+ } ,
238
243
} ,
239
244
240
245
loadingContainer : {
0 commit comments