mirror of
https://github.com/penpot/penpot.git
synced 2025-06-03 19:22:18 +02:00
🐛 Fix problem when dismissing shared library update
This commit is contained in:
parent
886c0c596f
commit
03040ed40b
3 changed files with 10 additions and 8 deletions
|
@ -80,6 +80,7 @@
|
||||||
- Fix problem with overlay positions in viewer [Taiga #8464](https://tree.taiga.io/project/penpot/issue/8464)
|
- Fix problem with overlay positions in viewer [Taiga #8464](https://tree.taiga.io/project/penpot/issue/8464)
|
||||||
- Fix layer panel overflowing [Taiga #8665](https://tree.taiga.io/project/penpot/issue/8665)
|
- Fix layer panel overflowing [Taiga #8665](https://tree.taiga.io/project/penpot/issue/8665)
|
||||||
- Fix problem when creating a component instance from grid layout [Github #4881](https://github.com/penpot/penpot/issues/4881)
|
- Fix problem when creating a component instance from grid layout [Github #4881](https://github.com/penpot/penpot/issues/4881)
|
||||||
|
- Fix problem when dismissing shared library update [Taiga #8669](https://tree.taiga.io/project/penpot/issue/8669)
|
||||||
|
|
||||||
## 2.1.5
|
## 2.1.5
|
||||||
|
|
||||||
|
|
|
@ -1058,7 +1058,7 @@
|
||||||
(def ^:private schema:ignore-file-library-sync-status
|
(def ^:private schema:ignore-file-library-sync-status
|
||||||
[:map {:title "ignore-file-library-sync-status"}
|
[:map {:title "ignore-file-library-sync-status"}
|
||||||
[:file-id ::sm/uuid]
|
[:file-id ::sm/uuid]
|
||||||
[:date ::dt/duration]])
|
[:date ::dt/instant]])
|
||||||
|
|
||||||
;; TODO: improve naming
|
;; TODO: improve naming
|
||||||
(sv/defmethod ::ignore-file-library-sync-status
|
(sv/defmethod ::ignore-file-library-sync-status
|
||||||
|
|
|
@ -141,21 +141,22 @@
|
||||||
|
|
||||||
;; --- INSTANT
|
;; --- INSTANT
|
||||||
|
|
||||||
|
(defn instant?
|
||||||
|
[v]
|
||||||
|
(instance? Instant v))
|
||||||
|
|
||||||
(defn instant
|
(defn instant
|
||||||
([s]
|
([s]
|
||||||
(if (int? s)
|
(cond
|
||||||
(Instant/ofEpochMilli s)
|
(instant? s) s
|
||||||
(Instant/parse s)))
|
(int? s) (Instant/ofEpochMilli s)
|
||||||
|
:else (Instant/parse s)))
|
||||||
([s fmt]
|
([s fmt]
|
||||||
(case fmt
|
(case fmt
|
||||||
:rfc1123 (Instant/from (.parse DateTimeFormatter/RFC_1123_DATE_TIME ^String s))
|
:rfc1123 (Instant/from (.parse DateTimeFormatter/RFC_1123_DATE_TIME ^String s))
|
||||||
:iso (Instant/from (.parse DateTimeFormatter/ISO_INSTANT ^String s))
|
:iso (Instant/from (.parse DateTimeFormatter/ISO_INSTANT ^String s))
|
||||||
:iso8601 (Instant/from (.parse DateTimeFormatter/ISO_INSTANT ^String s)))))
|
:iso8601 (Instant/from (.parse DateTimeFormatter/ISO_INSTANT ^String s)))))
|
||||||
|
|
||||||
(defn instant?
|
|
||||||
[v]
|
|
||||||
(instance? Instant v))
|
|
||||||
|
|
||||||
(defn is-after?
|
(defn is-after?
|
||||||
[da db]
|
[da db]
|
||||||
(.isAfter ^Instant da ^Instant db))
|
(.isAfter ^Instant da ^Instant db))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue