Add a lot of useful instructions to the firmware page.

This commit is contained in:
László Monda
2018-05-22 00:38:27 +02:00
parent 1ff51697b1
commit d11c532ea4
4 changed files with 22 additions and 8 deletions

View File

@@ -3,6 +3,8 @@ import { Store } from '@ngrx/store';
import { Observable } from 'rxjs/Observable';
import { Subscription } from 'rxjs/Subscription';
import { HardwareModules, VersionInformation } from 'uhk-common';
import { Constants } from 'uhk-common';
import { OpenUrlInNewWindowAction } from '../../../store/actions/app';
import {
AppState,
@@ -60,4 +62,9 @@ export class DeviceFirmwareComponent implements OnDestroy {
}.bind(this);
fileReader.readAsArrayBuffer(files[0]);
}
openFirmwareGitHubIssuePage(event): void {
event.preventDefault();
this.store.dispatch(new OpenUrlInNewWindowAction(Constants.FIRMWARE_GITHUB_ISSUE_URL));
}
}