···8080 , Cmd.batch
8181 [ Brain.Ports.toUI alienEvent
82828383- --
8383+ -- Sometimes the loading screen is still showing,
8484+ -- so we hide it here just in case.
8485 , case alienEvent.error of
8586 Just _ ->
8687 Brain.Ports.toUI (Alien.trigger Alien.HideLoadingScreen)
···215216translateReply : Reply -> Msg
216217translateReply reply =
217218 case reply of
218218- Chill ->
219219- Bypass
219219+ FabricatedNewSecretKey ->
220220+ SaveHypaethralData
220221221222 -----------------------------------------
222223 -- To UI
···344345 Just Alien.AuthMethod ->
345346 AuthenticationMsg (Authentication.MethodRetrieved event.data)
346347348348+ Just Alien.FabricateSecretKey ->
349349+ AuthenticationMsg Authentication.SecretKeyFabricated
350350+347351 Just Alien.ProcessSources ->
348352 -- Only proceed to the processing if we got all the necessary data,
349353 -- otherwise report an error in the UI.
···391395392396 Err err ->
393397 report Alien.ToCache (Json.errorToString err)
398398+399399+ Just Alien.UpdateEncryptionKey ->
400400+ case Json.decodeValue Json.string event.data of
401401+ Ok passphrase ->
402402+ AuthenticationMsg (Authentication.FabricateSecretKey passphrase)
403403+404404+ Err _ ->
405405+ Bypass
394406395407 _ ->
396408 Bypass
···77import Material.Icons.Action as Icons
88import Material.Icons.Communication as Icons
99import Tachyons.Classes as T
1010+import UI.Authentication
1011import UI.Backdrop
1112import UI.Core
1213import UI.Kit
···5960 , [ text "Changes are saved automatically."
6061 , lineBreak
6162 , text "PS. You're storing the data for this application "
6262- , case model.authentication.methodInUse of
6363+ , case UI.Authentication.extractMethod model.authentication of
6364 Just Ipfs ->
6464- text "on IPFS."
6565+ inline
6666+ []
6767+ [ text "on IPFS."
6868+ , lineBreak
6969+ , text "If you want to, you can "
7070+ , UI.Kit.textButton
7171+ { label = "change your passphrase"
7272+ , onClick =
7373+ Ipfs
7474+ |> UI.Authentication.ShowUpdateEncryptionKeyScreen
7575+ |> UI.Core.AuthenticationMsg
7676+ }
7777+ , text "."
7878+ ]
65796680 Just Local ->
6781 text "in this browser."