mirror of
https://github.com/documize/community.git
synced 2025-07-31 02:59:44 +02:00
clone space!
This commit is contained in:
parent
866b4eba8a
commit
bf390ed0b9
18 changed files with 302 additions and 108 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue