File tree Expand file tree Collapse file tree
ui/src/components/notifications Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,7 +11,11 @@ interface NotificationActionsProps {
1111export function NotificationActions ( { actions } : NotificationActionsProps ) {
1212 if ( actions . length === 0 ) return null ;
1313
14- const handleClick = async ( action : NotificationAction ) => {
14+ const handleClick = async (
15+ e : React . MouseEvent ,
16+ action : NotificationAction ,
17+ ) => {
18+ e . stopPropagation ( ) ;
1519 if ( ! action . url ) return ;
1620
1721 try {
@@ -33,7 +37,7 @@ export function NotificationActions({ actions }: NotificationActionsProps) {
3337 variant = { action . clear ? "ghost" : "outline" }
3438 size = "sm"
3539 className = "h-8 text-xs gap-1.5 transition-all duration-150 hover:bg-accent hover:shadow-sm active:scale-95"
36- onClick = { ( ) => handleClick ( action ) }
40+ onClick = { ( e ) => handleClick ( e , action ) }
3741 >
3842 { action . url && < ExternalLink className = "h-3 w-3" /> }
3943 { action . label }
You can’t perform that action at this time.
0 commit comments