Skip to content

Commit

Permalink
add address in new tab, #426
Browse files Browse the repository at this point in the history
  • Loading branch information
myrho committed Dec 11, 2023
1 parent df0dce8 commit c5ddf11
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions lang/de.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -332,3 +332,4 @@ Start a new investigation: Starte eine neue Nachforschung
or: oder
Load graph from .gs file: Eine bestehende .gs Datei laden
try an example: Beispiele
open in new tab: In neuem Tab öffnen
12 changes: 12 additions & 0 deletions src/View/Graph.elm
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ import Model.Graph.Layer as Layer exposing (Layer)
import Msg.Graph exposing (Msg(..))
import Plugin.Model exposing (ModelState)
import Plugin.View as Plugin exposing (Plugins)
import Route
import Route.Graph
import Svg.Styled exposing (..)
import Svg.Styled.Attributes as Svg exposing (..)
import Svg.Styled.Events as Svg exposing (..)
Expand Down Expand Up @@ -375,6 +377,16 @@ contextMenu plugins states vc model cm =
|> optionWithIcon "Annotate address" FontAwesome.userTag
, UserClickedRemoveAddress address.id
|> optionWithIcon "Remove from graph" FontAwesome.eraser
, Route.Graph.addressRoute
{ currency = address.address.currency
, address = address.address.address
, layer = Nothing
, table = Nothing
}
|> Route.graphRoute
|> Route.toUrl
|> UserClickedExternalLink
|> optionWithIcon "Open in new tab" FontAwesome.externalLinkAlt
]
++ contextMenuRule vc
++ addBlockExplorerLinks address.address.currency address.address.address
Expand Down

0 comments on commit c5ddf11

Please sign in to comment.