diff options
Diffstat (limited to 'webgui/src')
-rw-r--r-- | webgui/src/Main.hs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/webgui/src/Main.hs b/webgui/src/Main.hs index 44bcb88..537dcf1 100644 --- a/webgui/src/Main.hs +++ b/webgui/src/Main.hs | |||
@@ -154,7 +154,7 @@ setup Config{..} window (split -> (socketErr, dataUpdate)) = void $ do | |||
154 | on UI.valueChange text $ \str -> modifyStatus (\x -> x { ePrintout = bbcode $ T.pack str }) | 154 | on UI.valueChange text $ \str -> modifyStatus (\x -> x { ePrintout = bbcode $ T.pack str }) |
155 | 155 | ||
156 | return title # sink UI.value (fromMaybe "" . eTitle <$> editorStatus) | 156 | return title # sink UI.value (fromMaybe "" . eTitle <$> editorStatus) |
157 | return text # sink UI.text (eText <$> editorStatus) | 157 | return text # sink UI.value (eText <$> editorStatus) |
158 | return status # sink TP.text (toStatusString <$> editorStatus) | 158 | return status # sink TP.text (toStatusString <$> editorStatus) |
159 | return bbcodeStatus # sink TP.text (toStatusString' . ePrintout <$> editorStatus) | 159 | return bbcodeStatus # sink TP.text (toStatusString' . ePrintout <$> editorStatus) |
160 | 160 | ||
@@ -209,7 +209,7 @@ setup Config{..} window (split -> (socketErr, dataUpdate)) = void $ do | |||
209 | toTable :: Map DraftId (Maybe DraftTitle) -> UI [Element] | 209 | toTable :: Map DraftId (Maybe DraftTitle) -> UI [Element] |
210 | toTable = mapM toLine . Map.toList | 210 | toTable = mapM toLine . Map.toList |
211 | 211 | ||
212 | toLine (id@(show -> tId), fromMaybe "" . fmap T.unpack -> title) = do | 212 | toLine (id@(DraftId (show -> tId)), fromMaybe "" . fmap T.unpack -> title) = do |
213 | id' <- UI.td # set TP.text tId | 213 | id' <- UI.td # set TP.text tId |
214 | title' <- UI.td # set TP.text title | 214 | title' <- UI.td # set TP.text title |
215 | delete <- UI.button | 215 | delete <- UI.button |