mirror of
				https://github.com/avatao-content/frontend-tutorial-framework
				synced 2025-11-04 06:32:55 +00:00 
			
		
		
		
	Change default webide save button state to 'SAVED'
This commit is contained in:
		@@ -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) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user