Add language to a source

Allows to define upload urls for different languages.
This commit is contained in:
Eike Kettner
2021-02-18 23:20:25 +01:00
parent b110b9f572
commit 7ef3185659
9 changed files with 92 additions and 15 deletions

View File

@ -474,6 +474,18 @@ viewLinks2 flags _ source =
[ text source.source.id
]
]
, MB.view
{ start =
[ MB.SecondaryButton
{ label = "Back"
, icon = Just "fa fa-arrow-left"
, tagger = SetTableView
, title = "Back to list"
}
]
, end = []
, rootClasses = "mb-4"
}
, p [ class "text-lg pt-2 opacity-75" ]
[ text "This source defines URLs that can be used by anyone to send files to "
, text "you. There is a web page that you can share or the API url can be used "
@ -565,13 +577,6 @@ viewLinks2 flags _ source =
[ qrCodeView apiUrl
]
]
, button
[ class S.secondaryButton
, class "mt-4 mb-2"
, onClick SetTableView
]
[ text "Back"
]
]