Skip to content

Commit

Permalink
add version model variable
Browse files Browse the repository at this point in the history
  • Loading branch information
3kyro committed Dec 7, 2020
1 parent 644ca91 commit 11f5185
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions frontend/src/App.elm
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,9 @@ initModel =
, keepAliveIdle = Nothing
, keepAliveInterval = Nothing
, wordOrder = LE

-- version
, version = "0.2.1"
}


Expand Down
3 changes: 3 additions & 0 deletions frontend/src/Types.elm
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,9 @@ type alias Model =
, keepAliveIdle : Maybe Int -- in seconds
, keepAliveInterval : Maybe Int -- in seconds
, wordOrder : WordOrder

-- version
, version : String
}


Expand Down
2 changes: 1 addition & 1 deletion frontend/src/View.elm
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,7 @@ renderLogoModule model =
, label = text "website"

}
, el [ Font.size 15 ] <| text "version : 0.2.1"
, el [ Font.size 15 ] <| text <| "version : " ++ model.version
, el [ Font.size 30 ] <| text "Modbus Client"
]

Expand Down

0 comments on commit 11f5185

Please sign in to comment.