kgashok / elmBox

Using Elm to access Dropbox
2 stars 0 forks source link

Use colours to denote Appends that have not been Uploaded, yet #69

Closed kgashok closed 6 years ago

kgashok commented 6 years ago

Right now, the user could potentially refresh something and some appends might get lost.

kgashok commented 6 years ago

The approach I shall take is as follows:

type alias Model =
    { filePath : String
    , ...
    , postsToUpload : Maybe String
    }

and textarea in View as follows:


textarea
                [ class "height-adjusting-textarea"
                , id "update"
                , placeholder "Update?"
                , onInput UpdateStatus
                , value model.status
                ]
                []

If postToUpload is not Nothing, then I will change the backgorund colour of textarea with id update to be changed to yellow.

How do I go about doing this?

Options

Which one is the preferred way to do it? And I would like help to accomplish it both ways.

kgashok commented 6 years ago

Getting input from Slack Elm