projects
/
arvados-workbench2.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
18692: changed snackbar autohide
[arvados-workbench2.git]
/
src
/
views-components
/
snackbar
/
snackbar.tsx
diff --git
a/src/views-components/snackbar/snackbar.tsx
b/src/views-components/snackbar/snackbar.tsx
index 2d077cf728610a006d64bda215c671e9d77ab8f5..7e1a9b06f7a6db24a38376bf7fbefce986642c92 100644
(file)
--- a/
src/views-components/snackbar/snackbar.tsx
+++ b/
src/views-components/snackbar/snackbar.tsx
@@
-136,6
+136,10
@@
export const Snackbar = withStyles(styles)(connect(mapStateToProps, mapDispatchT
));
const actions = (props: SnackbarMessage, onClick, onClose, classes, index, autoHideDuration) => {
+ if (onClose && autoHideDuration) {
+ setTimeout(onClose, autoHideDuration + 1000);
+ }
+
const actions = [
<IconButton
key="close"