Spaces:
Building
Building
Update flare-ui/src/app/dialogs/version-edit-dialog/version-edit-dialog.component.ts
Browse files
flare-ui/src/app/dialogs/version-edit-dialog/version-edit-dialog.component.ts
CHANGED
@@ -418,9 +418,13 @@ export default class VersionEditDialogComponent implements OnInit {
|
|
418 |
}
|
419 |
}
|
420 |
|
421 |
-
// saveVersion metodunu düzelt (line 478-600 civarı):
|
422 |
async saveVersion() {
|
423 |
-
if (
|
|
|
|
|
|
|
|
|
|
|
424 |
const invalidFields: string[] = [];
|
425 |
Object.keys(this.versionForm.controls).forEach(key => {
|
426 |
const control = this.versionForm.get(key);
|
|
|
418 |
}
|
419 |
}
|
420 |
|
|
|
421 |
async saveVersion() {
|
422 |
+
if (!this.selectedVersion) {
|
423 |
+
this.snackBar.open('No version selected', 'Close', { duration: 3000 });
|
424 |
+
return;
|
425 |
+
}
|
426 |
+
|
427 |
+
if (this.versionForm.invalid) {
|
428 |
const invalidFields: string[] = [];
|
429 |
Object.keys(this.versionForm.controls).forEach(key => {
|
430 |
const control = this.versionForm.get(key);
|