[ARVADOS-WORKBENCH2] updated: 1.3.1-446-gfffd98c4

Git user git at public.curoverse.com
Mon May 13 12:27:52 UTC 2019


Summary of changes:
 src/views-components/favorite-star/favorite-star.tsx | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

       via  fffd98c407b5cabc744dccc4b051156d8445807a (commit)
      from  b9f3c31e7de7f241ef69a472c0047f125bf06875 (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 fffd98c407b5cabc744dccc4b051156d8445807a
Author: Pawel Kowalczyk <pawel.kowalczyk at contractors.roche.com>
Date:   Mon May 13 14:27:39 2019 +0200

    refs #15083-tooltips-for-icons-inside-table
    
    Arvados-DCO-1.1-Signed-off-by: Pawel Kowalczyk <pawel.kowalczyk at contractors.roche.com>

diff --git a/src/views-components/favorite-star/favorite-star.tsx b/src/views-components/favorite-star/favorite-star.tsx
index 6812535d..0598e5f5 100644
--- a/src/views-components/favorite-star/favorite-star.tsx
+++ b/src/views-components/favorite-star/favorite-star.tsx
@@ -6,7 +6,7 @@ import * as React from "react";
 import { FavoriteIcon, PublicFavoriteIcon } from "~/components/icon/icon";
 import { connect } from "react-redux";
 import { RootState } from "~/store/store";
-import { withStyles, StyleRulesCallback, WithStyles } from "@material-ui/core";
+import { withStyles, StyleRulesCallback, WithStyles, Tooltip } from "@material-ui/core";
 
 type CssRules = "icon";
 
@@ -25,7 +25,7 @@ const mapStateToProps = (state: RootState, props: { resourceUuid: string; classN
 export const FavoriteStar = connect(mapStateToProps)(
     withStyles(styles)((props: { isFavoriteVisible: boolean; className?: string; } & WithStyles<CssRules>) => {
         if (props.isFavoriteVisible) {
-            return <FavoriteIcon className={props.className || props.classes.icon} />;
+            return <Tooltip enterDelay={500} title="Favorite"><FavoriteIcon className={props.className || props.classes.icon} /></Tooltip>;
         } else {
             return null;
         }
@@ -34,7 +34,7 @@ export const FavoriteStar = connect(mapStateToProps)(
 export const PublicFavoriteStar = connect(mapStateToProps)(
     withStyles(styles)((props: { isPublicFavoriteVisible: boolean; className?: string; } & WithStyles<CssRules>) => {
         if (props.isPublicFavoriteVisible) {
-            return <PublicFavoriteIcon className={props.className || props.classes.icon} />;
+            return <Tooltip enterDelay={500} title="Public Favorite"><PublicFavoriteIcon className={props.className || props.classes.icon} /></Tooltip>;
         } else {
             return null;
         }

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list