Spaces:
Paused
Paused
Update flare-ui/src/app/dialogs/project-edit-dialog/project-edit-dialog.component.ts
Browse files
flare-ui/src/app/dialogs/project-edit-dialog/project-edit-dialog.component.ts
CHANGED
|
@@ -179,8 +179,7 @@ export default class ProjectEditDialogComponent implements OnInit {
|
|
| 179 |
defaultLanguage: this.data.project.default_language || 'tr',
|
| 180 |
supportedLanguages: this.data.project.supported_languages || ['tr'],
|
| 181 |
timezone: this.data.project.timezone || 'Europe/Istanbul',
|
| 182 |
-
region: this.data.project.region || 'tr-TR'
|
| 183 |
-
testUsers: this.data.project.test_users || []
|
| 184 |
});
|
| 185 |
|
| 186 |
// Rebuild test users form array
|
|
@@ -228,12 +227,16 @@ export default class ProjectEditDialogComponent implements OnInit {
|
|
| 228 |
try {
|
| 229 |
const formValue = this.form.value;
|
| 230 |
const projectData = {
|
| 231 |
-
|
| 232 |
-
|
|
|
|
|
|
|
| 233 |
default_language: formValue.defaultLanguage,
|
| 234 |
-
supported_languages: formValue.supportedLanguages
|
|
|
|
|
|
|
|
|
|
| 235 |
};
|
| 236 |
-
|
| 237 |
let result;
|
| 238 |
if (this.data.mode === 'create') {
|
| 239 |
result = await this.apiService.createProject(projectData).toPromise();
|
|
|
|
| 179 |
defaultLanguage: this.data.project.default_language || 'tr',
|
| 180 |
supportedLanguages: this.data.project.supported_languages || ['tr'],
|
| 181 |
timezone: this.data.project.timezone || 'Europe/Istanbul',
|
| 182 |
+
region: this.data.project.region || 'tr-TR'
|
|
|
|
| 183 |
});
|
| 184 |
|
| 185 |
// Rebuild test users form array
|
|
|
|
| 227 |
try {
|
| 228 |
const formValue = this.form.value;
|
| 229 |
const projectData = {
|
| 230 |
+
name: formValue.name,
|
| 231 |
+
caption: formValue.caption,
|
| 232 |
+
icon: formValue.icon,
|
| 233 |
+
description: formValue.description, // Bu satırın eksik olduğunu düşünüyorum
|
| 234 |
default_language: formValue.defaultLanguage,
|
| 235 |
+
supported_languages: formValue.supportedLanguages,
|
| 236 |
+
timezone: formValue.timezone,
|
| 237 |
+
region: formValue.region,
|
| 238 |
+
test_users: formValue.testUsers || []
|
| 239 |
};
|
|
|
|
| 240 |
let result;
|
| 241 |
if (this.data.mode === 'create') {
|
| 242 |
result = await this.apiService.createProject(projectData).toPromise();
|