mirror of
https://github.com/avatao-content/frontend-tutorial-framework
synced 2025-01-16 05:41:56 +00:00
Merge pull request #4 from avatao-content/watchdog
Implement frontend reload command (triggers webide file request)
This commit is contained in:
commit
d1a7fe2193
@ -30,7 +30,9 @@ export class WebideComponent implements OnInit {
|
|||||||
this.code = event.data.content;
|
this.code = event.data.content;
|
||||||
this.language = event.data.language;
|
this.language = event.data.language;
|
||||||
this.files = event.data.files;
|
this.files = event.data.files;
|
||||||
|
|
||||||
if (event.data.command === 'write') { this.saveButtonState = 'SAVED'; }
|
if (event.data.command === 'write') { this.saveButtonState = 'SAVED'; }
|
||||||
|
if (event.data.command === 'reload') { this.requestCode(); }
|
||||||
});
|
});
|
||||||
this.requestCode();
|
this.requestCode();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user