mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-10-15 20:31:54 +00:00
Show item detail for a shared item
This commit is contained in:
@@ -32,6 +32,7 @@ import Messages.Comp.SourceManage exposing (Texts)
|
||||
import Ports
|
||||
import QRCode
|
||||
import Styles as S
|
||||
import Svg.Attributes as SvgA
|
||||
|
||||
|
||||
type alias Model =
|
||||
@@ -226,8 +227,8 @@ update flags msg model =
|
||||
|
||||
qrCodeView : Texts -> String -> Html msg
|
||||
qrCodeView texts message =
|
||||
QRCode.encode message
|
||||
|> Result.map QRCode.toSvg
|
||||
QRCode.fromString message
|
||||
|> Result.map (QRCode.toSvg [ SvgA.class "w-64 h-64" ])
|
||||
|> Result.withDefault
|
||||
(Html.text texts.errorGeneratingQR)
|
||||
|
||||
|
Reference in New Issue
Block a user