mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-02-08 12:20:14 +00:00
Update screenshot-dialog.component.ts
This commit is contained in:
parent
f71af8c57c
commit
24fffafbf1
@ -24,7 +24,7 @@ export class ScreenshotDialogComponent implements OnInit {
|
|||||||
private deviceService: DeviceDetectorService
|
private deviceService: DeviceDetectorService
|
||||||
) {
|
) {
|
||||||
this.nameForm = this.formBuilder.group({
|
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');
|
this.isPngAvailable = this.electronService.isWindows || (this.deviceService.getDeviceInfo().os==='Windows');
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user