[arvados-workbench2] updated: 2.4.0-213-gc2291072
git repository hosting
git at public.arvados.org
Wed Sep 21 22:09:56 UTC 2022
Summary of changes:
.env | 6 ++++--
src/views-components/snackbar/snackbar.tsx | 8 ++++++--
2 files changed, 10 insertions(+), 4 deletions(-)
via c2291072ba2e0aa545b1b3f2075bead431fd65b7 (commit)
from 8773930e64ef81384ec14d2d6f7d1a3489e0efd5 (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 c2291072ba2e0aa545b1b3f2075bead431fd65b7
Author: Daniel Kutyła <daniel.kutyla at contractors.roche.com>
Date: Thu Sep 22 00:09:04 2022 +0200
18692: Snackbar changes
Arvados-DCO-1.1-Signed-off-by: Daniel Kutyła <daniel.kutyla at contractors.roche.com>
diff --git a/.env b/.env
index fd91b99c..7c38110f 100644
--- a/.env
+++ b/.env
@@ -3,5 +3,7 @@
# SPDX-License-Identifier: AGPL-3.0
REACT_APP_ARVADOS_CONFIG_URL=/config.json
-REACT_APP_ARVADOS_API_HOST=c97qk.arvadosapi.com
-HTTPS=true
\ No newline at end of file
+REACT_APP_ARVADOS_API_HOST=ce8i5.arvadosapi.com
+#
+#127.0.0.1:9999
+HTTPS=false
\ No newline at end of file
diff --git a/src/views-components/snackbar/snackbar.tsx b/src/views-components/snackbar/snackbar.tsx
index f3d3368b..1887f0bd 100644
--- a/src/views-components/snackbar/snackbar.tsx
+++ b/src/views-components/snackbar/snackbar.tsx
@@ -125,7 +125,7 @@ export const Snackbar = withStyles(styles)(connect(mapStateToProps, mapDispatchT
{message.message}
</span>
}
- action={actions(message, props.onClick, props.onClose, classes, index)}
+ action={actions(message, props.onClick, props.onClose, classes, index, props.autoHideDuration)}
/>
})
}
@@ -135,7 +135,11 @@ export const Snackbar = withStyles(styles)(connect(mapStateToProps, mapDispatchT
}
));
-const actions = (props: SnackbarMessage, onClick, onClose, classes, index) => {
+const actions = (props: SnackbarMessage, onClick, onClose, classes, index, autoHideDuration) => {
+ if (onClose && autoHideDuration) {
+ setTimeout(onClose, autoHideDuration);
+ }
+
const actions = [
<IconButton
key="close"
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list