1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-31 02:59:44 +02:00

clone space!

This commit is contained in:
Harvey Kandola 2017-08-21 17:51:06 +01:00
parent 866b4eba8a
commit bf390ed0b9
18 changed files with 302 additions and 108 deletions

View file

@ -29,10 +29,10 @@ export default BaseService.extend({
canEditCurrentFolder: false,
// Add a new folder.
add(folder) {
add(payload) {
return this.get('ajax').post(`folders`, {
contentType: 'json',
data: JSON.stringify(folder)
data: JSON.stringify(payload)
}).then((folder) => {
let data = this.get('store').normalize('folder', folder);
return this.get('store').push(data);