whimsical-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject [whimsy] branch master updated: Don't allow submit without filename
Date Thu, 14 May 2020 20:02:28 GMT
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 c8acf02  Don't allow submit without filename
c8acf02 is described below

commit c8acf028b4e0999c5055633328bb957633dd3ecc
Author: Sebb <sebb@apache.org>
AuthorDate: Thu May 14 21:02:05 2020 +0100

    Don't allow submit without filename
---
 www/secretary/workbench/views/forms/icla2.js.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/www/secretary/workbench/views/forms/icla2.js.rb b/www/secretary/workbench/views/forms/icla2.js.rb
index 91be584..bb43a9c 100644
--- a/www/secretary/workbench/views/forms/icla2.js.rb
+++ b/www/secretary/workbench/views/forms/icla2.js.rb
@@ -102,7 +102,7 @@ class ICLA2 < Vue
       end
 
       _input.btn.btn_primary value: 'File', type: 'submit', ref: 'file',
-        disabled: @submitted
+        disabled: @submitted || (not @icla) || (not @icla.filename)
     end
   end
 


Mime
View raw message