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 2020/07/11 12:33:25 UTC

[whimsy] branch master updated: Support _warn messages

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 ca1f0ed  Support _warn messages
ca1f0ed is described below

commit ca1f0ed48a82a44fde046e14c61859dd3cc24e3d
Author: Sebb <se...@apache.org>
AuthorDate: Sat Jul 11 13:33:17 2020 +0100

    Support _warn messages
---
 www/roster/views/person/main.js.rb | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/www/roster/views/person/main.js.rb b/www/roster/views/person/main.js.rb
index 3c5b36e..d99826d 100644
--- a/www/roster/views/person/main.js.rb
+++ b/www/roster/views/person/main.js.rb
@@ -424,6 +424,8 @@ class Person < Vue
           @response_title = 'Error occurred'
           @response = JSON.stringify(json, nil, 2)
           jQuery('div.modal').modal('show')
+        elsif json.warn
+          alert json.warn
         end
 
         # reenable form for later reuse