[arvados-workbench2] updated: 2.4.0-235-g1c48c437
git repository hosting
git at public.arvados.org
Thu Oct 6 09:39:36 UTC 2022
Summary of changes:
src/views-components/snackbar/snackbar.tsx | 4 ++++
1 file changed, 4 insertions(+)
via 1c48c437ac3d6f7ac0b7fe8203417de79564acfe (commit)
from 31a15158b7598ecfa0f8311d4d7ddce1c6287fcc (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
commit 1c48c437ac3d6f7ac0b7fe8203417de79564acfe
Author: Daniel Kutyła <daniel.kutyla at contractors.roche.com>
Date: Thu Oct 6 11:39:11 2022 +0200
18692: changed snackbar autohide
Arvados-DCO-1.1-Signed-off-by: Daniel Kutyła <daniel.kutyla at contractors.roche.com>
diff --git a/src/views-components/snackbar/snackbar.tsx b/src/views-components/snackbar/snackbar.tsx
index 2d077cf7..7e1a9b06 100644
--- 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"
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list