You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by ru...@apache.org on 2017/09/23 17:18:26 UTC

[whimsy] branch master updated: Make PodlingNameSearch work with Vue.js

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

rubys 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 e4fc30c  Make PodlingNameSearch work with Vue.js
e4fc30c is described below

commit e4fc30cc9383f1cac3bcaf236e408381e398c84d
Author: Sam Ruby <ru...@intertwingly.net>
AuthorDate: Sat Sep 23 13:18:08 2017 -0400

    Make PodlingNameSearch work with Vue.js
---
 www/board/agenda/views/elements/pns.rb | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/www/board/agenda/views/elements/pns.rb b/www/board/agenda/views/elements/pns.rb
index b0f2449..d37e760 100644
--- a/www/board/agenda/views/elements/pns.rb
+++ b/www/board/agenda/views/elements/pns.rb
@@ -3,6 +3,8 @@
 #
 
 class PodlingNameSearch < Vue
+  props [:item]
+
   def render
     _span.pns title: 'podling name search' do
       if Server.podlingnamesearch
@@ -22,11 +24,11 @@ class PodlingNameSearch < Vue
   # initial mount: fetch podlingnamesearch data unless already downloaded
   def mounted()
     if Server.podlingnamesearch
-      self.check(self.props)
+      self.check($props)
     else
       retrieve 'podlingnamesearch', :json do |results|
         Server.podlingnamesearch = results
-        self.check(self.props)
+        self.check($props)
       end
     end
   end
@@ -48,5 +50,7 @@ class PodlingNameSearch < Vue
         end
       end
     end
+
+    Vue.forceUpdate()
   end
 end

-- 
To stop receiving notification emails like this one, please contact
['"commits@whimsical.apache.org" <co...@whimsical.apache.org>'].