File tree Expand file tree Collapse file tree
lib/livebook_web/live/session_live Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -68,7 +68,12 @@ defmodule LivebookWeb.SessionLive.PackageSearchComponent do
6868 < . remix_icon icon = "windy-line " class = "text-xl " />
6969 < div class = "ml-2 " > No results</ div >
7070 </ div >
71- < . package :for = { { package , idx } <- Enum . with_index ( packages ) } package = { package } idx = { idx } />
71+ < . package
72+ :for = { { package , idx } <- Enum . with_index ( packages ) }
73+ package = { package }
74+ idx = { idx }
75+ myself = { @ myself }
76+ />
7277 </ . async_result >
7378 </ div >
7479 </ div >
@@ -92,7 +97,12 @@ defmodule LivebookWeb.SessionLive.PackageSearchComponent do
9297 </ div >
9398 </ div >
9499 < div class = "ml-2 " >
95- < . button color = "gray " small aria-label = "add " phx-click = { JS . push ( "add" , value: % { idx: @ idx } ) } >
100+ < . button
101+ color = "gray "
102+ small
103+ aria-label = "add "
104+ phx-click = { JS . push ( "add" , value: % { idx: @ idx } , target: @ myself ) }
105+ >
96106 < . remix_icon icon = "add-line " />
97107 < span > Add</ span >
98108 </ . button >
You can’t perform that action at this time.
0 commit comments