mirror of
https://github.com/avatao-content/frontend-tutorial-framework
synced 2025-01-16 03:01:56 +00:00
Implement frontend reload command (triggers webide file request)
This commit is contained in:
parent
a09f12ce3b
commit
a50b8e1340
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user