whimsical-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ru...@apache.org
Subject [whimsy] branch master updated: tweak add discussion item:
Date Mon, 09 Apr 2018 12:49:45 GMT
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 1641959  tweak add discussion item:
1641959 is described below

commit 16419598673cfc2a474eff1bc4452283fb54d601
Author: Sam Ruby <rubys@intertwingly.net>
AuthorDate: Mon Apr 9 08:49:03 2018 -0400

    tweak add discussion item:
    
    * disable submit until title and text is present
    * change label for text box to simply text
---
 www/board/agenda/views/buttons/post.js.rb | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/www/board/agenda/views/buttons/post.js.rb b/www/board/agenda/views/buttons/post.js.rb
index c14fcbc..b53abe3 100644
--- a/www/board/agenda/views/buttons/post.js.rb
+++ b/www/board/agenda/views/buttons/post.js.rb
@@ -328,7 +328,7 @@ class Post < Vue
 
     when 'edit item'
       @header = 'Edit Discussion Item'
-      @label = 'discussion item'
+      @label = 'text'
       @message = "Edit #{@@item.title} Discussion Item"
 
     when 'edit report'
@@ -348,17 +348,17 @@ class Post < Vue
 
     when 'post item', 'Discussion Item'
       @header = 'Add Discussion Item'
-      @label = 'discussion item'
+      @label = 'text'
       @message = "Add Discussion Item"
 
     when 'post items'
       @header = 'Post Discussion Items'
-      @label = 'items'
+      @label = 'text'
       @message = "Post Discussion Items"
 
     when 'edit items'
       @header = 'Edit Discussion Items'
-      @label = 'items'
+      @label = 'text'
       @message = "Edit Discussion Items"
     end
 
@@ -482,7 +482,7 @@ class Post < Vue
   def ready()
     return false if @disabled
 
-    if @header == 'Add Resolution'
+    if @header == 'Add Resolution' or @header == 'Add Discussion Item'
       return @report != '' && @title != ''
     else
       return @report != @@item.text && @message != ''

-- 
To stop receiving notification emails like this one, please contact
rubys@apache.org.

Mime
View raw message