adding tooltip for bindingCount

pull/22450/head
jubinsoni 10 months ago
parent da53bf511f
commit 5838f7e595

@ -12,6 +12,7 @@ import Confirm from '@/app/components/base/confirm'
import cn from '@/utils/classnames' import cn from '@/utils/classnames'
import type { Tag } from '@/app/components/base/tag-management/constant' import type { Tag } from '@/app/components/base/tag-management/constant'
import { ToastContext } from '@/app/components/base/toast' import { ToastContext } from '@/app/components/base/toast'
import Tooltip from '@/app/components/base/tooltip'
import { import {
deleteTag, deleteTag,
updateTag, updateTag,
@ -110,6 +111,14 @@ const TagItemEditor: FC<TagItemEditorProps> = ({
{tag.name} {tag.name}
</div> </div>
<div className='leading-4.5 shrink-0 px-1 text-sm font-medium text-text-tertiary'>{tag.binding_count}</div> <div className='leading-4.5 shrink-0 px-1 text-sm font-medium text-text-tertiary'>{tag.binding_count}</div>
<Tooltip
popupContent={
<div>{t('workflow.common.tagBound')}</div>
}
needsDelay
>
<div className='leading-4.5 shrink-0 px-1 text-sm font-medium text-text-tertiary'>{tag.binding_count}</div>
</Tooltip>
<div className='group/edit shrink-0 cursor-pointer rounded-md p-1 hover:bg-state-base-hover' onClick={() => setIsEditing(true)}> <div className='group/edit shrink-0 cursor-pointer rounded-md p-1 hover:bg-state-base-hover' onClick={() => setIsEditing(true)}>
<RiEditLine className='h-3 w-3 text-text-tertiary group-hover/edit:text-text-secondary' /> <RiEditLine className='h-3 w-3 text-text-tertiary group-hover/edit:text-text-secondary' />
</div> </div>

@ -113,6 +113,7 @@ const translation = {
addFailureBranch: 'Add Fail Branch', addFailureBranch: 'Add Fail Branch',
loadMore: 'Load More', loadMore: 'Load More',
noHistory: 'No History', noHistory: 'No History',
tagBound: 'number of apps to which this tag is bound',
}, },
env: { env: {
envPanelTitle: 'Environment Variables', envPanelTitle: 'Environment Variables',

Loading…
Cancel
Save