mirror of
https://github.com/penpot/penpot.git
synced 2025-06-07 00:21:40 +02:00
Show submit button disabled instead of hidden on pageform.
This commit is contained in:
parent
227c197692
commit
47f6d531b2
2 changed files with 6 additions and 5 deletions
|
@ -131,6 +131,7 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
input[type=button][disabled],
|
||||||
.btn-disabled {
|
.btn-disabled {
|
||||||
opacity: .5;
|
opacity: .5;
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
|
|
|
@ -111,11 +111,11 @@
|
||||||
(layout-input data "notebook")
|
(layout-input data "notebook")
|
||||||
(layout-input data "desktop")]
|
(layout-input data "desktop")]
|
||||||
|
|
||||||
(when valid?
|
|
||||||
[:input#project-btn.btn-primary
|
[:input#project-btn.btn-primary
|
||||||
{:value "Go go go!"
|
{:value "Go go go!"
|
||||||
|
:disabled (not valid?)
|
||||||
:on-click on-save
|
:on-click on-save
|
||||||
:type "button"}])])))
|
:type "button"}]])))
|
||||||
|
|
||||||
(mx/defc page-form-lightbox
|
(mx/defc page-form-lightbox
|
||||||
{:mixins [mx/static (forms/clear-mixin st/store :workspace-page-form)]}
|
{:mixins [mx/static (forms/clear-mixin st/store :workspace-page-form)]}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue