change copy text to Copy full ID to clipboard

This commit is contained in:
Peizhi Zheng
2022-01-14 22:41:08 -08:00
parent a91f112f13
commit caa8ceb879
6 changed files with 15 additions and 18 deletions

View File

@@ -314,13 +314,12 @@ function Row(props: RowProps) {
<TableCell component="th" scope="row" className={classes.idCell}>
<div className={classes.IdGroup}>
{uuidPrefix(task.id)}
<Tooltip title="Copy text to clipboard">
<Tooltip title="Copy full ID to clipboard">
<IconButton
onClick={(e) => {
e.stopPropagation()
navigator.clipboard.writeText(task.id)
}
}
}}
size="small"
className={classes.copyButton}
>

View File

@@ -353,7 +353,7 @@ function Row(props: RowProps) {
<TableCell component="th" scope="row" className={classes.idCell}>
<div className={classes.IdGroup}>
{uuidPrefix(task.id)}
<Tooltip title="Copy text to clipboard">
<Tooltip title="Copy full ID to clipboard">
<IconButton
onClick={(e) => {
e.stopPropagation()

View File

@@ -322,7 +322,7 @@ function Row(props: RowProps) {
<TableCell component="th" scope="row" className={classes.idCell}>
<div className={classes.IdGroup}>
{uuidPrefix(task.id)}
<Tooltip title="Copy text to clipboard">
<Tooltip title="Copy full ID to clipboard">
<IconButton
onClick={(e) => {
e.stopPropagation()

View File

@@ -350,15 +350,15 @@ function Row(props: RowProps) {
/>
</IconButton>
</TableCell>
<TableCell component="th" scope="row" className={classes.idCell} >
<TableCell component="th" scope="row" className={classes.idCell}>
<div className={classes.IdGroup}>
{uuidPrefix(task.id)}
<Tooltip title="Copy text to clipboard">
<Tooltip title="Copy full ID to clipboard">
<IconButton
onClick={(e) =>{
onClick={(e) => {
e.stopPropagation()
navigator.clipboard.writeText(task.id) }
}
navigator.clipboard.writeText(task.id)
}}
size="small"
className={classes.copyButton}
>

View File

@@ -382,13 +382,12 @@ function Row(props: RowProps) {
<TableCell component="th" scope="row" className={classes.idCell}>
<div className={classes.IdGroup}>
{uuidPrefix(task.id)}
<Tooltip title="Copy text to clipboard">
<Tooltip title="Copy full ID to clipboard">
<IconButton
onClick={(e) => {
e.stopPropagation()
navigator.clipboard.writeText(task.id)
}
}
}}
size="small"
className={classes.copyButton}
>

View File

@@ -391,13 +391,12 @@ function Row(props: RowProps) {
<TableCell component="th" scope="row" className={classes.idCell}>
<div className={classes.IdGroup}>
{uuidPrefix(task.id)}
<Tooltip title="Copy text to clipboard">
<Tooltip title="Copy full ID to clipboard">
<IconButton
onClick={(e) => {
e.stopPropagation()
navigator.clipboard.writeText(task.id)
}
}
}}
size="small"
className={classes.copyButton}
>