#69 - Partager ma collection

develop
Damien Broqua 4 weeks ago
parent e01f01337c
commit a56db99a81
  1. 2
      javascripts/mon-compte/ma-collection/index.js
  2. 1
      views/pages/mon-compte/ma-collection/index.ejs

@ -20,7 +20,7 @@ if (typeof isPublicCollection !== "undefined") {
itemId: null,
showModalDelete: false,
showModalShare: false,
shareLink: `${protocol}//${host}/collection/<%= user._id %>`,
shareLink: `${protocol}//${host}/collection/${userId}`,
// eslint-disable-next-line no-undef
isPublicCollection,
};

@ -197,4 +197,5 @@
<script>
const isPublicCollection = <%= user.isPublicCollection ? 'true' : 'false' %>;
const userId = "<%= user._id %>";
</script>
Loading…
Cancel
Save