mirror of
https://github.com/penpot/penpot.git
synced 2025-02-22 23:06:08 -05:00
Merge pull request #3448 from penpot/superalex-bugfixing-19
🐛 Bugfixing
This commit is contained in:
commit
bbe3021aed
6 changed files with 23 additions and 3 deletions
|
@ -92,6 +92,11 @@
|
||||||
- Fix unnecessary button [Taiga #3312](https://tree.taiga.io/project/penpot/issue/3312)
|
- Fix unnecessary button [Taiga #3312](https://tree.taiga.io/project/penpot/issue/3312)
|
||||||
- Fix copy color information in several formats [Taiga #4723](https://tree.taiga.io/project/penpot/issue/4723)
|
- Fix copy color information in several formats [Taiga #4723](https://tree.taiga.io/project/penpot/issue/4723)
|
||||||
- Fix dropdown width [Taiga #5541](https://tree.taiga.io/project/penpot/issue/5541)
|
- Fix dropdown width [Taiga #5541](https://tree.taiga.io/project/penpot/issue/5541)
|
||||||
|
- Fix enable comment mode and insert image keeps on comment mode [Taiga #5678](https://tree.taiga.io/project/penpot/issue/5678)
|
||||||
|
- Fix enable undo just after using pencil [Taiga #5674](https://tree.taiga.io/project/penpot/issue/5674)
|
||||||
|
- Fix 400 error when user changes password [Taiga #5643](https://tree.taiga.io/project/penpot/issue/5643)
|
||||||
|
- Fix cannot undo layer styles [Taiga #5676](https://tree.taiga.io/project/penpot/issue/5676)
|
||||||
|
|
||||||
### :arrow_up: Deps updates
|
### :arrow_up: Deps updates
|
||||||
|
|
||||||
- Update google fonts catalog (at 2023/07/06) [Taiga #5592](https://tree.taiga.io/project/penpot/issue/5592)
|
- Update google fonts catalog (at 2023/07/06) [Taiga #5592](https://tree.taiga.io/project/penpot/issue/5592)
|
||||||
|
|
|
@ -119,7 +119,7 @@
|
||||||
(watch [it state _]
|
(watch [it state _]
|
||||||
(let [edition (get-in state [:workspace-local :edition])
|
(let [edition (get-in state [:workspace-local :edition])
|
||||||
drawing (get state :workspace-drawing)]
|
drawing (get state :workspace-drawing)]
|
||||||
(when-not (or (some? edition) (not-empty drawing))
|
(when-not (or (some? edition) (some? (:object drawing)))
|
||||||
(let [undo (:workspace-undo state)
|
(let [undo (:workspace-undo state)
|
||||||
items (:items undo)
|
items (:items undo)
|
||||||
index (or (:index undo) (dec (count items)))]
|
index (or (:index undo) (dec (count items)))]
|
||||||
|
|
|
@ -439,3 +439,13 @@
|
||||||
(cond-> errors
|
(cond-> errors
|
||||||
(all-spaces? (get data field))
|
(all-spaces? (get data field))
|
||||||
(assoc field {:message error-msg}))))
|
(assoc field {:message error-msg}))))
|
||||||
|
|
||||||
|
(defn validate-not-all-spaces
|
||||||
|
[field error-msg]
|
||||||
|
(fn [errors data]
|
||||||
|
(let [value (get data field)]
|
||||||
|
(cond-> errors
|
||||||
|
(and
|
||||||
|
(all-spaces? value)
|
||||||
|
(> (count value) 0))
|
||||||
|
(assoc field {:message error-msg})))))
|
||||||
|
|
|
@ -71,7 +71,8 @@
|
||||||
[{:keys [locale] :as props}]
|
[{:keys [locale] :as props}]
|
||||||
(let [initial (mf/use-memo (constantly {:password-old nil}))
|
(let [initial (mf/use-memo (constantly {:password-old nil}))
|
||||||
form (fm/use-form :spec ::password-form
|
form (fm/use-form :spec ::password-form
|
||||||
:validators [(fm/validate-not-empty :password-1 (tr "auth.password-not-empty"))
|
:validators [(fm/validate-not-all-spaces :password-old (tr "auth.password-not-empty"))
|
||||||
|
(fm/validate-not-empty :password-1 (tr "auth.password-not-empty"))
|
||||||
(fm/validate-not-empty :password-2 (tr "auth.password-not-empty"))
|
(fm/validate-not-empty :password-2 (tr "auth.password-not-empty"))
|
||||||
password-equality]
|
password-equality]
|
||||||
:initial initial)]
|
:initial initial)]
|
||||||
|
|
|
@ -30,7 +30,10 @@
|
||||||
file-id (mf/use-ctx ctx/current-file-id)
|
file-id (mf/use-ctx ctx/current-file-id)
|
||||||
|
|
||||||
on-click
|
on-click
|
||||||
(mf/use-fn #(dom/click (mf/ref-val ref)))
|
(mf/use-fn
|
||||||
|
(fn []
|
||||||
|
(st/emit! :interrupt dw/clear-edition-mode)
|
||||||
|
(dom/click (mf/ref-val ref))))
|
||||||
|
|
||||||
on-selected
|
on-selected
|
||||||
(mf/use-fn
|
(mf/use-fn
|
||||||
|
|
|
@ -62,6 +62,7 @@
|
||||||
:selected-blend-mode value
|
:selected-blend-mode value
|
||||||
:option-highlighted? false
|
:option-highlighted? false
|
||||||
:preview-complete? true)
|
:preview-complete? true)
|
||||||
|
(st/emit! (dw/unset-preview-blend-mode ids))
|
||||||
(on-change :blend-mode value)))
|
(on-change :blend-mode value)))
|
||||||
|
|
||||||
handle-blend-mode-enter
|
handle-blend-mode-enter
|
||||||
|
|
Loading…
Add table
Reference in a new issue