Affichage d'une collection partagée et correction d'un gros bug

This commit is contained in:
Damien Broqua 2022-03-06 14:24:10 +01:00
parent 4872c4d82c
commit 0703d0bc33
9 changed files with 283 additions and 12 deletions

View file

@ -3,6 +3,9 @@
Ma collection
<i class="icon-share" @click="toggleModalShare" aria-label="Partager ma collection" title="Votre collection sera visible en lecture aux personnes ayant le lien de partage"></i>
</h1>
<a :href="shareLink" v-if="isPublicCollection" target="_blank">
<i class="icon-share"></i> Voir ma collection partagée
</a>
<div class="filters">
<div class="field">
<label for="artist">Artiste</label>
@ -257,11 +260,11 @@
})
.then( (res) => {
this.isPublicCollection = res.data.isPublicCollection;
showToastr("Collection partagée", true);
if ( this.isPublicCollection ) {
console.log('ici', this.shareLink)
window.open(this.shareLink, '_blank');
showToastr("Votre collection est désormais publique", true);
} else {
showToastr("Votre collection n'est plus partagée", true);
}
})
.catch((err) => {