diff options
Diffstat (limited to 'modern/src/settings')
-rw-r--r-- | modern/src/settings/GroupsPage.js | 1 | ||||
-rw-r--r-- | modern/src/settings/components/CollectionActions.js | 8 |
2 files changed, 4 insertions, 5 deletions
diff --git a/modern/src/settings/GroupsPage.js b/modern/src/settings/GroupsPage.js index 7148184b..baba7f72 100644 --- a/modern/src/settings/GroupsPage.js +++ b/modern/src/settings/GroupsPage.js @@ -45,7 +45,6 @@ const GroupsPage = () => { const actionCommand = { key: 'command', title: t('deviceCommand'), - tooltip: t('commandSendTitle'), icon: <PublishIcon fontSize="small" />, handler: (groupId) => navigate(`/settings/group/${groupId}/command`), }; diff --git a/modern/src/settings/components/CollectionActions.js b/modern/src/settings/components/CollectionActions.js index 87ffe7af..287be964 100644 --- a/modern/src/settings/components/CollectionActions.js +++ b/modern/src/settings/components/CollectionActions.js @@ -74,20 +74,20 @@ const CollectionActions = ({ ) : ( <div className={classes.row}> {customActions && customActions.map((action) => ( - <Tooltip title={action.tooltip || action.title} enterDelay={500} enterNextDelay={500}> - <IconButton size="small" onClick={() => handleCustom(action)} key={action.key}> + <Tooltip title={action.title} enterDelay={process.env.REACT_APP_TOOLTIP_DELAY} enterNextDelay={process.env.REACT_APP_TOOLTIP_DELAY} key={action.key}> + <IconButton size="small" onClick={() => handleCustom(action)}> {action.icon} </IconButton> </Tooltip> ))} {!readonly && ( <> - <Tooltip title={t('sharedEdit')} enterDelay={500} enterNextDelay={500}> + <Tooltip title={t('sharedEdit')} enterDelay={process.env.REACT_APP_TOOLTIP_DELAY} enterNextDelay={process.env.REACT_APP_TOOLTIP_DELAY}> <IconButton size="small" onClick={handleEdit}> <EditIcon fontSize="small" /> </IconButton> </Tooltip> - <Tooltip title={t('sharedRemove')} enterDelay={500} enterNextDelay={500}> + <Tooltip title={t('sharedRemove')} enterDelay={process.env.REACT_APP_TOOLTIP_DELAY} enterNextDelay={process.env.REACT_APP_TOOLTIP_DELAY}> <IconButton size="small" onClick={handleRemove}> <DeleteIcon fontSize="small" /> </IconButton> |