From 29a21f54620c8c99e9fd202e2fb03c44c9eee233 Mon Sep 17 00:00:00 2001 From: Giulio Cesare Solaroli Date: Wed, 27 Aug 2014 18:16:30 +0200 Subject: [PATCH] Fixed cancel changes in "mobile" mode. --- frontend/delta/js/Clipperz/PM/UI/Components/Cards/Detail.js | 1 + frontend/delta/js/Clipperz/PM/UI/Components/Cards/Edit.js | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/delta/js/Clipperz/PM/UI/Components/Cards/Detail.js b/frontend/delta/js/Clipperz/PM/UI/Components/Cards/Detail.js index 788f03e..0e8d760 100644 --- a/frontend/delta/js/Clipperz/PM/UI/Components/Cards/Detail.js +++ b/frontend/delta/js/Clipperz/PM/UI/Components/Cards/Detail.js @@ -31,6 +31,7 @@ Clipperz.PM.UI.Components.Cards.Detail = React.createClass({ result = this.props['selectedCard']; if (result) { result['style'] = this.props['style']; + result['ask'] = this.props['ask']; } return result; diff --git a/frontend/delta/js/Clipperz/PM/UI/Components/Cards/Edit.js b/frontend/delta/js/Clipperz/PM/UI/Components/Cards/Edit.js index 08d92e0..9976e34 100644 --- a/frontend/delta/js/Clipperz/PM/UI/Components/Cards/Edit.js +++ b/frontend/delta/js/Clipperz/PM/UI/Components/Cards/Edit.js @@ -160,7 +160,8 @@ Clipperz.PM.UI.Components.Cards.Edit = React.createClass({ this.renderAddNewField(), this.renderDirectLogins(this.props['directLogins']) ]) - ]) + ]), + this.props['ask'] ? Clipperz.PM.UI.Components.DialogBox(this.props['ask']) : null ]); },