Spaces:
Running
Running
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
@@ -200,23 +200,11 @@ export default class ProjectEditDialogComponent implements OnInit {
|
|
200 |
defaultLanguage: ['tr'],
|
201 |
supportedLanguages: [['tr']],
|
202 |
timezone: ['Europe/Istanbul'],
|
203 |
-
region: ['tr-TR']
|
204 |
-
testUsers
|
205 |
});
|
206 |
}
|
207 |
|
208 |
-
get testUsers() {
|
209 |
-
return this.form.get('testUsers') as FormArray;
|
210 |
-
}
|
211 |
-
|
212 |
-
addTestUser() {
|
213 |
-
this.testUsers.push(this.fb.control('', Validators.required));
|
214 |
-
}
|
215 |
-
|
216 |
-
removeTestUser(index: number) {
|
217 |
-
this.testUsers.removeAt(index);
|
218 |
-
}
|
219 |
-
|
220 |
async save() {
|
221 |
if (this.form.invalid) {
|
222 |
this.form.markAllAsTouched();
|
@@ -236,8 +224,7 @@ export default class ProjectEditDialogComponent implements OnInit {
|
|
236 |
default_language: formValue.defaultLanguage,
|
237 |
supported_languages: formValue.supportedLanguages,
|
238 |
timezone: formValue.timezone,
|
239 |
-
region: formValue.region
|
240 |
-
test_users: formValue.testUsers || []
|
241 |
};
|
242 |
|
243 |
let result;
|
|
|
200 |
defaultLanguage: ['tr'],
|
201 |
supportedLanguages: [['tr']],
|
202 |
timezone: ['Europe/Istanbul'],
|
203 |
+
region: ['tr-TR']
|
204 |
+
// testUsers kaldırıldı
|
205 |
});
|
206 |
}
|
207 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
208 |
async save() {
|
209 |
if (this.form.invalid) {
|
210 |
this.form.markAllAsTouched();
|
|
|
224 |
default_language: formValue.defaultLanguage,
|
225 |
supported_languages: formValue.supportedLanguages,
|
226 |
timezone: formValue.timezone,
|
227 |
+
region: formValue.region
|
|
|
228 |
};
|
229 |
|
230 |
let result;
|