Use constants on workspace settings lightbox.

This commit is contained in:
Andrey Antukh 2016-04-10 18:22:40 +03:00
parent d69be9a378
commit b920342188
No known key found for this signature in database
GPG Key ID: 4DFEBCB8316A8B95

View File

@ -9,6 +9,7 @@
(:require [sablono.core :as html :refer-macros [html]] (:require [sablono.core :as html :refer-macros [html]]
[lentes.core :as l] [lentes.core :as l]
[rum.core :as rum] [rum.core :as rum]
[uxbox.constants :as c]
[uxbox.rstore :as rs] [uxbox.rstore :as rs]
[uxbox.data.pages :as udp] [uxbox.data.pages :as udp]
[uxbox.ui.icons :as i] [uxbox.ui.icons :as i]
@ -55,15 +56,14 @@
[:input#grid-x.input-text [:input#grid-x.input-text
{:placeholder "X px" {:placeholder "X px"
:type "number" :type "number"
;; TODO: put here the default from constants :value (:grid/x-axis opts c/grid-x-axis)
:value (:grid/x-axis opts "10")
:on-change (partial on-field-change :grid/x-axis) :on-change (partial on-field-change :grid/x-axis)
:min 1 ;;TODO check this value :min 1
:max 100}] :max 100}]
[:input#grid-y.input-text [:input#grid-y.input-text
{:placeholder "Y px" {:placeholder "Y px"
:type "number" :type "number"
:value (:grid/y-axis opts "10") :value (:grid/y-axis opts c/grid-y-axis)
:on-change (partial on-field-change :grid/y-axis) :on-change (partial on-field-change :grid/y-axis)
:min 1 :min 1
:max 100}]] :max 100}]]