tooty/src/Ports.elm
Nicolas Perriault 7a053b9fa0 Fix #152: Multiple accounts. (#153)
* Update model to store multiple clients.

* Delete tmp registration data after client creation.

* Add minimal account selector view

* Update clients so they can have an account attached.

* List clients in the account selector.

* List accounts in the account selector view.

* It works™.

* Minor CSS fix.

* Reset server value when switching account.

* Fix empty black screen on reauth with new client format.

* Fix typo.

[skip-ci]
2017-05-09 18:43:12 +02:00

24 lines
398 B
Elm

port module Ports
exposing
( saveRegistration
, deleteRegistration
, scrollIntoView
, saveClients
, setStatus
)
port saveRegistration : String -> Cmd msg
port deleteRegistration : String -> Cmd msg
port saveClients : String -> Cmd msg
port setStatus : { id : String, status : String } -> Cmd msg
port scrollIntoView : String -> Cmd msg