{BUGFIX} On share my collection

This commit is contained in:
Damien Broqua 2024-01-28 17:17:07 +01:00
parent 71c120564a
commit 041e24e26f
2 changed files with 12 additions and 0 deletions

View File

@ -25,6 +25,10 @@ Vue.createApp({
// eslint-disable-next-line no-undef
isPublicCollection,
// eslint-disable-next-line no-undef
userId,
// eslint-disable-next-line no-undef
vueType,
// eslint-disable-next-line no-undef
query,
};
},
@ -81,6 +85,10 @@ Vue.createApp({
if (this.style) {
url += `&style=${this.formatParams(this.style)}`;
}
// INFO: Cas d'une collection partagée
if (this.vueType === "public" && this.userId) {
url += `&userId=${this.userId}`;
}
axios
.get(url)

View File

@ -43,6 +43,10 @@ class Me extends Pages {
user.salt = value.password;
}
if (value.isPublicCollection !== undefined) {
user.isPublicCollection = value.isPublicCollection;
}
user.save();
await new Promise((resolve, reject) => {