Browse Source

Fix the merge

pull/421/head
Sebastian Stehle 7 years ago
parent
commit
d6d9824268
  1. 11
      src/Squidex/app/shared/state/contents.forms.ts

11
src/Squidex/app/shared/state/contents.forms.ts

@ -53,7 +53,8 @@ export class SaveQueryForm extends Form<FormGroup, any> {
[ [
Validators.required Validators.required
] ]
] ],
user: false
})); }));
} }
} }
@ -345,9 +346,9 @@ export class FieldDefaultValue implements FieldPropertiesVisitor<any> {
const now = this.now || DateTime.now(); const now = this.now || DateTime.now();
if (properties.calculatedDefaultValue === 'Now') { if (properties.calculatedDefaultValue === 'Now') {
return now.toUTCStringFormat('YYYY-MM-DDTHH:mm:ss') + 'Z'; return `${now.toUTCStringFormat('YYYY-MM-DDTHH:mm:ss')}Z`;
} else if (properties.calculatedDefaultValue === 'Today') { } else if (properties.calculatedDefaultValue === 'Today') {
return now.toUTCStringFormat('YYYY-MM-DD'); return `${now.toUTCStringFormat('YYYY-MM-DD')}T00:00:00Z`;
} else { } else {
return properties.defaultValue; return properties.defaultValue;
} }
@ -566,10 +567,6 @@ export class EditContentForm extends Form<FormGroup, any> {
if (isInitial) { if (isInitial) {
this.extractPrevData(); this.extractPrevData();
} }
this.value.subscribe(x => {
JSON.stringify(x);
});
} }
public submitCompleted(options?: { newValue?: any, noReset?: boolean }) { public submitCompleted(options?: { newValue?: any, noReset?: boolean }) {

Loading…
Cancel
Save