Skip to content

Commit

Permalink
code refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
jsers committed Sep 2, 2024
1 parent 0dcbbc4 commit 1fb1104
Showing 1 changed file with 14 additions and 12 deletions.
26 changes: 14 additions & 12 deletions src/pages/alertRules/List/MoreOperations.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -105,18 +105,20 @@ export default function MoreOperations(props: MoreOperationsProps) {
>
<span>{t('batch.update.title')}</span>
</li>
<li
className='ant-dropdown-menu-item'
onClick={() => {
CloneToHosts({
gid: bgid,
ids: selectRowKeys,
onOk: getAlertRules,
});
}}
>
<span>{t('batch.cloneToHosts.title')}</span>
</li>
{isPlus && (
<li
className='ant-dropdown-menu-item'
onClick={() => {
CloneToHosts({
gid: bgid,
ids: selectRowKeys,
onOk: getAlertRules,
});
}}
>
<span>{t('batch.cloneToHosts.title')}</span>
</li>
)}
</ul>
}
trigger={['click']}
Expand Down

0 comments on commit 1fb1104

Please sign in to comment.