You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by se...@apache.org on 2019/03/23 10:13:09 UTC

[whimsy] branch master updated: Conversion to text has to be done before display

This is an automated email from the ASF dual-hosted git repository.

sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git


The following commit(s) were added to refs/heads/master by this push:
     new 552a520  Conversion to text has to be done before display
552a520 is described below

commit 552a520c6af728aa547285ce0339b33c96896ad0
Author: Sebb <se...@apache.org>
AuthorDate: Sat Mar 23 10:13:00 2019 +0000

    Conversion to text has to be done before display
---
 www/roster/views/person.js.rb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/www/roster/views/person.js.rb b/www/roster/views/person.js.rb
index 3cc6a62..c60fcef 100644
--- a/www/roster/views/person.js.rb
+++ b/www/roster/views/person.js.rb
@@ -267,7 +267,7 @@ class Person < Vue
             _h4 'Dry run results'
           end
           _div.modal_body do
-            _textarea value: JSON.stringify(@response, nil, 2), readonly: true
+            _textarea value: @response, readonly: true
           end
           _div.modal_footer do
             _button.btn.btn_default 'Close', data_dismiss: 'modal'
@@ -365,7 +365,7 @@ class Person < Vue
       complete: ->(response) do
         # show results of dryrun
         if formData[0] and formData[0].name == 'dryrun'
-          @response = response.responseJSON
+          @response = JSON.stringify(response.responseJSON, nil, 2)
           jQuery('div.modal').modal('show')
         end