mirror of
https://github.com/penpot/penpot.git
synced 2025-05-19 23:46:11 +02:00
🐛 Add soft size limit for file names
This commit is contained in:
parent
3994bf583c
commit
72f7e5bb76
1 changed files with 13 additions and 12 deletions
|
@ -593,6 +593,7 @@
|
|||
(defn rename-file
|
||||
[id name]
|
||||
{:pre [(uuid? id) (string? name)]}
|
||||
(let [name (str/prune name 200)]
|
||||
(ptk/reify ::rename-file
|
||||
IDeref
|
||||
(-deref [_]
|
||||
|
@ -606,7 +607,7 @@
|
|||
(watch [_ _ _]
|
||||
(let [params {:id id :name name}]
|
||||
(->> (rp/cmd! :rename-file params)
|
||||
(rx/ignore))))))
|
||||
(rx/ignore)))))))
|
||||
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
;; Workspace State Manipulation
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue