Add library names to handoff views

This commit is contained in:
alonso.torres 2020-11-03 10:54:37 +01:00 committed by Hirunatan
parent 833a53f131
commit 8ae52be773
9 changed files with 169 additions and 66 deletions

View file

@ -49,9 +49,12 @@
project (retrieve-project conn (:project-id file))
page (get-in file [:data :pages-index page-id])
bundle {:file (dissoc file :data)
file-library (select-keys (:data file) [:colors :media :typographies])
bundle {:file (-> (dissoc file :data)
(merge file-library))
:page (get-in file [:data :pages-index page-id])
:project project}]
:project project}
]
(if (string? share-token)
(do
(check-shared-token! conn file-id page-id share-token)