Skip to content

Commit

Permalink
Work in progress
Browse files Browse the repository at this point in the history
  • Loading branch information
VinceMacBuche committed Jun 25, 2018
1 parent 62fe3c4 commit 6580dd0
Show file tree
Hide file tree
Showing 13 changed files with 858 additions and 344 deletions.
3 changes: 2 additions & 1 deletion branding/src/main/elm/brandingManagement.html
Expand Up @@ -12,7 +12,8 @@
<main></main>
<script>
var main = document.querySelector("main");
var app = Elm.Branding.embed(main);
const flags = contextPath;
var app = Elm.Branding.embed(main, flags);
app.ports.check.subscribe(function(word) {
window.print();
});
Expand Down
22 changes: 22 additions & 0 deletions branding/src/main/elm/sources/ApiCall.elm
@@ -0,0 +1,22 @@
module ApiCall exposing (..)
import DataTypes exposing (..)

import Http exposing (..)
import JsonDecoder exposing (..)

getSettings : Model -> Cmd Msg
getSettings model =
let
url = (model.contextPath ++ "/secure/api/branding")
headers = []
req = request {
method = "GET"
, headers = []
, url = url
, body = emptyBody
, expect = expectJson decodeSettings
, timeout = Nothing
, withCredentials = False
}
in
send GetSettings req

0 comments on commit 6580dd0

Please sign in to comment.