Change default webide save button state to 'SAVED'

This commit is contained in:
Kristóf Tóth 2018-03-02 11:31:14 +01:00
parent d17bfce170
commit 7ec5a75bef

View File

@ -32,7 +32,7 @@ export class WebideComponent implements OnInit {
language = 'javascript';
theme = 'monokai';
files: string[];
saveButtonState = 'DIRTY';
saveButtonState = 'SAVED';
command_handlers = { 'reload': this.reloadHandler.bind(this),
'read': this.readHandler.bind(this),
'select': this.selectHandler.bind(this),
@ -74,6 +74,7 @@ export class WebideComponent implements OnInit {
readHandler(data: SourceCode) {
this.updateFileData(data);
this.saveButtonState = 'SAVED';
}
tabSwitchButtonHandler(file) {