finisch sharing functionality
This commit is contained in:
@@ -155,8 +155,11 @@ export default {
|
||||
axios.put(context.rootGetters.server + "/api/albums/" + album._id, body, context.rootGetters.headers);
|
||||
},
|
||||
shareEnable(context, album) {
|
||||
axios.post(context.rootGetters.server + "/api/albums/" + album._id + "/share", {}, context.rootGetters.headers).then(res => {
|
||||
album.share = res.data;
|
||||
return new Promise(resolve => {
|
||||
axios.post(context.rootGetters.server + "/api/albums/" + album._id + "/share", {}, context.rootGetters.headers).then(res => {
|
||||
album.share = res.data;
|
||||
resolve();
|
||||
});
|
||||
});
|
||||
},
|
||||
shareDisable(context, album) {
|
||||
|
||||
Reference in New Issue
Block a user