From d644cba38ff06369cc43c1ebd08d344fd1d248ea Mon Sep 17 00:00:00 2001 From: Maxime Quandalle Date: Mon, 31 Aug 2015 15:09:53 +0200 Subject: Replace the component bounded `cachedValue` by a global `UnsavedEdits` This new draft saving system is currently only implemented for the card description and comment. We need better a component inheritance/composition model to support this for all editable fields. Fixes #186 --- client/components/activities/comments.jade | 1 + 1 file changed, 1 insertion(+) (limited to 'client/components/activities/comments.jade') diff --git a/client/components/activities/comments.jade b/client/components/activities/comments.jade index 3b47cbf6..405778de 100644 --- a/client/components/activities/comments.jade +++ b/client/components/activities/comments.jade @@ -4,5 +4,6 @@ template(name="commentForm") +userAvatar(userId=currentUser._id) form.js-new-comment-form +editor(class="js-new-comment-input") + | {{getUnsavedValue 'cardComment' currentCard._id}} .add-controls button.primary.confirm.clear.js-add-comment(type="submit") {{_ 'comment'}} -- cgit v1.2.3-1-g7c22