Remove unnecessary parentheses and refactor bot messages
This commit is contained in:
@@ -73,7 +73,7 @@ export class IdeComponent implements OnInit {
|
||||
}
|
||||
|
||||
subscribeWS() {
|
||||
this.webSocketService.observeKey<WebSocketMessage>('ide').subscribe((message) => {
|
||||
this.webSocketService.observeKey<WebSocketMessage>('ide').subscribe(message => {
|
||||
this.command_handlers[message.key](message);
|
||||
this.changeDetectorRef.detectChanges();
|
||||
});
|
||||
@@ -89,7 +89,7 @@ export class IdeComponent implements OnInit {
|
||||
this.processManagerService.init();
|
||||
this.processManagerService.subscribeCallback(
|
||||
config.ide.deployProcessName,
|
||||
(message) => {
|
||||
message => {
|
||||
this.deploymentNotificationService.deploying.next(false);
|
||||
this.newLogs.emit({
|
||||
stdout: message.stdout,
|
||||
@@ -100,7 +100,7 @@ export class IdeComponent implements OnInit {
|
||||
|
||||
this.processManagerService.subscribeSuccessCallback(
|
||||
config.ide.deployProcessName,
|
||||
(message) => this.setDeployButtonState(DeployButtonState.DEPLOYED)
|
||||
message => this.setDeployButtonState(DeployButtonState.DEPLOYED)
|
||||
);
|
||||
|
||||
this.processManagerService.subscribeErrorCallback(
|
||||
|
||||
Reference in New Issue
Block a user