Skip to content

Commit 997aac5

Browse files
author
Sergiu Miclea
committed
Add tooltip to replica list item schedule icon
1 parent 31e3126 commit 997aac5

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

src/components/molecules/MainListItem/MainListItem.jsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,11 @@ class MainListItem extends React.Component<Props> {
221221
style={{ marginRight: '8px' }}
222222
data-test-id={`mainListItem-statusPill-${status}`}
223223
/> : null}
224-
{this.props.showScheduleIcon ? <ScheduleImage /> : null}
224+
{this.props.showScheduleIcon ? (
225+
<ScheduleImage
226+
data-tip="The Replica has scheduling enabled and will execute automatically"
227+
/>
228+
) : null}
225229
</StatusWrapper>
226230
</Title>
227231
{endpointImages}

src/components/organisms/MainList/MainList.jsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ import styled from 'styled-components'
2020

2121
import StatusImage from '../../atoms/StatusImage'
2222
import Button from '../../atoms/Button'
23+
import Tooltip from '../../atoms/Tooltip'
2324

2425
import type { MainItem } from '../../../types/MainItem'
2526
import Palette from '../../styleUtils/Palette'
@@ -184,6 +185,8 @@ class MainList extends React.Component<Props> {
184185
<Wrapper>
185186
{this.props.loading || this.props.items.length === 0 || this.props.showEmptyList ? <Separator /> : null}
186187
{renderContent()}
188+
<Tooltip />
189+
{setTimeout(() => { Tooltip.rebuild() }, 500)}
187190
</Wrapper>
188191
)
189192
}

0 commit comments

Comments
 (0)