mirror of
https://git.rwth-aachen.de/acs/public/villas/web/
synced 2025-03-09 00:00:01 +01:00
Fix datafilecontrol save
This commit is contained in:
parent
32aa113d9e
commit
26809ecb3e
1 changed files with 3 additions and 1 deletions
|
@ -64,7 +64,7 @@ export default DS.RESTSerializer.extend({
|
|||
serializeIntoHash: function(hash, typeClass, snapshot, options) {
|
||||
hash.contextElements = [
|
||||
{
|
||||
id: snapshot.id,
|
||||
id: 'DataFileControl',
|
||||
type: 'DataFileControl',
|
||||
isPattern: false,
|
||||
attributes: []
|
||||
|
@ -72,6 +72,8 @@ export default DS.RESTSerializer.extend({
|
|||
];
|
||||
hash.updateAction = "APPEND";
|
||||
|
||||
console.log(hash);
|
||||
|
||||
for (var name in snapshot._attributes) {
|
||||
hash.contextElements[0].attributes.push({
|
||||
name: name,
|
||||
|
|
Loading…
Add table
Reference in a new issue