Merge pull request #4 from avatao-content/watchdog

Implement frontend reload command (triggers webide file request)
This commit is contained in:
Bokros Bálint 2018-02-13 16:35:19 +01:00 committed by GitHub
commit d1a7fe2193
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -30,7 +30,9 @@ export class WebideComponent implements OnInit {
this.code = event.data.content;
this.language = event.data.language;
this.files = event.data.files;
if (event.data.command === 'write') { this.saveButtonState = 'SAVED'; }
if (event.data.command === 'reload') { this.requestCode(); }
});
this.requestCode();
}