{BUGFIX} On share my collection
This commit is contained in:
parent
71c120564a
commit
041e24e26f
2 changed files with 12 additions and 0 deletions
|
@ -25,6 +25,10 @@ Vue.createApp({
|
||||||
// eslint-disable-next-line no-undef
|
// eslint-disable-next-line no-undef
|
||||||
isPublicCollection,
|
isPublicCollection,
|
||||||
// eslint-disable-next-line no-undef
|
// eslint-disable-next-line no-undef
|
||||||
|
userId,
|
||||||
|
// eslint-disable-next-line no-undef
|
||||||
|
vueType,
|
||||||
|
// eslint-disable-next-line no-undef
|
||||||
query,
|
query,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
@ -81,6 +85,10 @@ Vue.createApp({
|
||||||
if (this.style) {
|
if (this.style) {
|
||||||
url += `&style=${this.formatParams(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
|
axios
|
||||||
.get(url)
|
.get(url)
|
||||||
|
|
|
@ -43,6 +43,10 @@ class Me extends Pages {
|
||||||
user.salt = value.password;
|
user.salt = value.password;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (value.isPublicCollection !== undefined) {
|
||||||
|
user.isPublicCollection = value.isPublicCollection;
|
||||||
|
}
|
||||||
|
|
||||||
user.save();
|
user.save();
|
||||||
|
|
||||||
await new Promise((resolve, reject) => {
|
await new Promise((resolve, reject) => {
|
||||||
|
|
Loading…
Reference in a new issue