This commit is contained in:
@@ -130,4 +130,14 @@ export default {
|
||||
box.covers = {}
|
||||
});
|
||||
},
|
||||
shareEnable(context, box) {
|
||||
axios.post(context.rootGetters.server + "/api/boxes/" + box._id + "/share", {}, context.rootGetters.headers).then(res => {
|
||||
box.share = res.data;
|
||||
});
|
||||
},
|
||||
shareDisable(context, box) {
|
||||
axios.delete(context.rootGetters.server + "/api/boxes/" + box._id + "/share", context.rootGetters.headers).then(() => {
|
||||
box.share = {};
|
||||
});
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user