* added 'icon' property for popups
All checks were successful
continuous-integration/drone/push Build is passing

* show a popup after creating a share link for alum and box
* set min width to 320 px for sharing dialog
This commit is contained in:
Artem Anufrij
2023-02-19 20:56:03 +01:00
parent 77e835e33e
commit 19f221556a
5 changed files with 18 additions and 4 deletions

View File

@@ -165,6 +165,7 @@ export default {
axios.post(context.rootGetters.server + "/api/albums/" + album._id + "/share", {}, context.rootGetters.headers).then(res => {
album.share = res.data;
resolve();
context.dispatch("addPoUp", { title: "Share successful", message: "Url was copied into your clipboard", type: "success", icon:"share" }, { root: true });
});
});
},

View File

@@ -141,6 +141,7 @@ export default {
axios.post(context.rootGetters.server + "/api/boxes/" + box._id + "/share", {}, context.rootGetters.headers).then(res => {
box.share = res.data;
resolve();
context.dispatch("addPoUp", { title: "Share successful", message: "Url was copied into your clipboard", type: "success", icon: "share" }, { root: true });
});
});
},