Refactor editor write handler to a seperate method
This commit is contained in:
@@ -151,6 +151,12 @@ export class IdeComponent implements OnInit {
|
||||
this.requestCode();
|
||||
}
|
||||
|
||||
editorWriteHanlder() {
|
||||
this.setCodeState(CodeState.DIRTY);
|
||||
this.setDeployButtonState(DeployButtonState.TODEPLOY);
|
||||
this.resetAutoSaveCountdown();
|
||||
}
|
||||
|
||||
setCodeState(state: CodeState) {
|
||||
this.codeState = state;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user