mirror of
https://github.com/ansible/awx.git
synced 2026-01-18 13:11:19 -03:30
ProjectListItem: Disabled sync button and render tooltip on sync.
Added feature of disabling sync button when users click sync button and rendering tooltip when disabled sync button on hover.
This commit is contained in:
parent
bb896c0b02
commit
07d01c49c0
@ -169,7 +169,10 @@ function ProjectListItem({
|
||||
visible={project.summary_fields.user_capabilities.start}
|
||||
tooltip={i18n._(t`Sync Project`)}
|
||||
>
|
||||
<ProjectSyncButton projectId={project.id} />
|
||||
<ProjectSyncButton
|
||||
projectId={project.id}
|
||||
lastJobStatus={project.summary_fields.last_job.status}
|
||||
/>
|
||||
</ActionItem>
|
||||
<ActionItem
|
||||
visible={project.summary_fields.user_capabilities.edit}
|
||||
|
||||
@ -342,6 +342,10 @@ describe('<ProjectsListItem />', () => {
|
||||
description: '',
|
||||
name: 'Mock org',
|
||||
},
|
||||
last_job: {
|
||||
id: 9000,
|
||||
status: 'successful',
|
||||
},
|
||||
user_capabilities: {
|
||||
start: true,
|
||||
},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user