From 7ec5a75befb43eb591e826d2beb9fdc99824fe45 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krist=C3=B3f=20T=C3=B3th?= Date: Fri, 2 Mar 2018 11:31:14 +0100 Subject: [PATCH] Change default webide save button state to 'SAVED' --- src/app/webide/webide.component.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/app/webide/webide.component.ts b/src/app/webide/webide.component.ts index 135396d..a8ea14f 100644 --- a/src/app/webide/webide.component.ts +++ b/src/app/webide/webide.component.ts @@ -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) {