diff --git a/src/app/webide/webide.component.html b/src/app/webide/webide.component.html
index 9ae5301..abee9d4 100644
--- a/src/app/webide/webide.component.html
+++ b/src/app/webide/webide.component.html
@@ -9,7 +9,7 @@
-
{ this.setDeployButtonStateDeployed(); });
+ this.processManagerService.subscribeCallback('login', (event) => { this.setDeployButtonState('DEPLOYED'); });
this.resetAutoSaveCountdown();
}
@@ -100,16 +100,12 @@ export class WebideComponent implements OnInit {
this.requestCode();
}
- setSaveButtonStateDirty() {
- this.saveButtonState = 'DIRTY';
+ setSaveButtonState(state: string) {
+ this.saveButtonState = state;
}
- setDeployButtonStateDeployed() {
- this.deployButtonState = 'DEPLOYED';
- }
-
- setDeployButtonStateTodeploy() {
- this.deployButtonState = 'TODEPLOY';
+ setDeployButtonState(state: string) {
+ this.deployButtonState = state;
}
deployCode() {