Skip to content

Commit

Permalink
Merge pull request #24 from dwyl/strikethrough-17
Browse files Browse the repository at this point in the history
strikethrough text capture when done
  • Loading branch information
nelsonic authored Mar 24, 2020
2 parents 0b75b69 + 5952f09 commit e21abae
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
9 changes: 8 additions & 1 deletion elm.js
Original file line number Diff line number Diff line change
Expand Up @@ -9316,6 +9316,7 @@ var $author$project$Pages$Capture$ToggleCompleted = function (a) {
return {$: 11, a: a};
};
var $elm$html$Html$Attributes$checked = $elm$html$Html$Attributes$boolProperty('checked');
var $elm$html$Html$del = _VirtualDom_node('del');
var $author$project$Capture$getCurrentTimer = function (timers) {
return $elm$core$List$head(timers);
};
Expand Down Expand Up @@ -9578,7 +9579,13 @@ var $author$project$Pages$Capture$showCapture = F2(
$author$project$Pages$Capture$ToggleCompleted(capture))
]),
_List_Nil),
$elm$html$Html$text(capture.ap)
completed ? A2(
$elm$html$Html$del,
_List_Nil,
_List_fromArray(
[
$elm$html$Html$text(capture.ap)
])) : $elm$html$Html$text(capture.ap)
])),
function () {
var _v0 = capture.am;
Expand Down
6 changes: 5 additions & 1 deletion src/Pages/Capture.elm
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,11 @@ showCapture clock capture =
, onClick (ToggleCompleted capture)
]
[]
, text <| capture.text
, if completed then
del [] [ text <| capture.text ]

else
text <| capture.text
]
, case capture.status of
ToDo ->
Expand Down

0 comments on commit e21abae

Please sign in to comment.