From 11f5185081d7005217ee4e4036742f4e4baca9fb Mon Sep 17 00:00:00 2001 From: Kyriakos Papachrysanthou Date: Mon, 7 Dec 2020 21:59:02 +0100 Subject: [PATCH] add version model variable --- frontend/src/App.elm | 3 +++ frontend/src/Types.elm | 3 +++ frontend/src/View.elm | 2 +- 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/frontend/src/App.elm b/frontend/src/App.elm index 9671097..6d45be4 100644 --- a/frontend/src/App.elm +++ b/frontend/src/App.elm @@ -118,6 +118,9 @@ initModel = , keepAliveIdle = Nothing , keepAliveInterval = Nothing , wordOrder = LE + + -- version + , version = "0.2.1" } diff --git a/frontend/src/Types.elm b/frontend/src/Types.elm index d47d981..ba948a4 100644 --- a/frontend/src/Types.elm +++ b/frontend/src/Types.elm @@ -236,6 +236,9 @@ type alias Model = , keepAliveIdle : Maybe Int -- in seconds , keepAliveInterval : Maybe Int -- in seconds , wordOrder : WordOrder + + -- version + , version : String } diff --git a/frontend/src/View.elm b/frontend/src/View.elm index 879d19f..1e6e734 100644 --- a/frontend/src/View.elm +++ b/frontend/src/View.elm @@ -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" ]