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