0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-02-12 18:18:24 -05:00

Show submit button disabled instead of hidden on pageform.

This commit is contained in:
Andrey Antukh 2017-02-22 17:05:21 +01:00
parent 227c197692
commit 47f6d531b2
No known key found for this signature in database
GPG key ID: 4DFEBCB8316A8B95
2 changed files with 6 additions and 5 deletions

View file

@ -131,6 +131,7 @@
}
}
input[type=button][disabled],
.btn-disabled {
opacity: .5;
pointer-events: none;

View file

@ -111,11 +111,11 @@
(layout-input data "notebook")
(layout-input data "desktop")]
(when valid?
[:input#project-btn.btn-primary
{:value "Go go go!"
:on-click on-save
:type "button"}])])))
[:input#project-btn.btn-primary
{:value "Go go go!"
:disabled (not valid?)
:on-click on-save
:type "button"}]])))
(mx/defc page-form-lightbox
{:mixins [mx/static (forms/clear-mixin st/store :workspace-page-form)]}