Possibilité de ne pas partager un album sur le fediverse

This commit is contained in:
Damien Broqua 2023-10-07 18:52:52 +02:00
parent 1931bd9eda
commit 3b3a4cf779
4 changed files with 33 additions and 4 deletions

View file

@ -1,6 +1,8 @@
Vue.createApp({
data() {
return {
// eslint-disable-next-line no-undef
share: canPublish,
q: "",
year: "",
country: "",
@ -169,7 +171,10 @@ Vue.createApp({
this.submitting = true;
return axios
.post("/api/v1/albums", this.details)
.post("/api/v1/albums", {
album: this.details,
share: this.share,
})
.then(() => {
window.location.href = "/ma-collection";
})