Skip to content
Snippets Groups Projects
Commit 22fe05a6 authored by Oskar Marquardt's avatar Oskar Marquardt
Browse files

Removed main.js from langauge stat

- Added sphere affinity
parent 3f04788c
No related branches found
No related tags found
No related merge requests found
Pipeline #22117 passed
public/main.js -linguist-vendored
\ No newline at end of file
......@@ -25,6 +25,7 @@ new =
, spheres =
[ { name = "Correspondence"
, dots = Sphere.dots 0
, affinity = False
}
]
}
\ No newline at end of file
......@@ -112,12 +112,12 @@ viewSphere sphere =
[ span [] [ text sphere.name ]
, button
[ class "button is-small"
, onClick ( ChangeSphere { name = sphere.name, dots = BoundedInt.change sphere.dots (sphere.dots.value - 1) } )
, onClick ( ChangeSphere { sphere | dots = BoundedInt.change sphere.dots (sphere.dots.value - 1) } )
] [ text "-" ]
, span [] [ text ( String.fromInt sphere.dots.value ) ]
, button
[ class "button is-small"
, onClick ( ChangeSphere { name = sphere.name, dots = BoundedInt.change sphere.dots (sphere.dots.value + 1) } )
, onClick ( ChangeSphere { sphere | dots = BoundedInt.change sphere.dots (sphere.dots.value + 1) } )
] [ text "+" ]
]
......
......@@ -5,6 +5,7 @@ import BoundedInt exposing (BoundedInt)
type alias Sphere =
{ name : String
, dots : BoundedInt
, affinity : Bool
}
changeSphereInList : List Sphere -> Sphere -> List Sphere
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment