From 24fffafbf150560f71f8fda78fc5635522b9c711 Mon Sep 17 00:00:00 2001 From: piotrpekala7 <31202938+piotrpekala7@users.noreply.github.com> Date: Thu, 2 Apr 2020 01:08:57 +0200 Subject: [PATCH] Update screenshot-dialog.component.ts --- .../screenshot-dialog/screenshot-dialog.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/components/project-map/screenshot-dialog/screenshot-dialog.component.ts b/src/app/components/project-map/screenshot-dialog/screenshot-dialog.component.ts index bcac4d8c..5a456ac0 100644 --- a/src/app/components/project-map/screenshot-dialog/screenshot-dialog.component.ts +++ b/src/app/components/project-map/screenshot-dialog/screenshot-dialog.component.ts @@ -24,7 +24,7 @@ export class ScreenshotDialogComponent implements OnInit { private deviceService: DeviceDetectorService ) { this.nameForm = this.formBuilder.group({ - screenshotName: new FormControl(null, [Validators.required]) + screenshotName: new FormControl(`screenshot-${Date.now()}`, [Validators.required]) }); this.isPngAvailable = this.electronService.isWindows || (this.deviceService.getDeviceInfo().os==='Windows'); }