mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2024-12-18 20:47:51 +00:00
Update project-web-service-handler.ts
This commit is contained in:
parent
2ebe412cc8
commit
1b05924070
@ -10,7 +10,7 @@ import { Drawing } from '../cartography/models/drawing';
|
||||
|
||||
export class WebServiceMessage {
|
||||
action: string;
|
||||
event: Node | Link | Drawing;
|
||||
event: Node | Link | Drawing | any;
|
||||
}
|
||||
|
||||
@Injectable()
|
||||
@ -67,13 +67,13 @@ export class ProjectWebServiceHandler {
|
||||
this.drawingNotificationEmitter.emit(message);
|
||||
}
|
||||
if (message.action === 'log.error') {
|
||||
this.errorNotificationEmitter.emit(message.event);
|
||||
this.errorNotificationEmitter.emit(message.event.message);
|
||||
}
|
||||
if (message.action === 'log.warning') {
|
||||
this.warningNotificationEmitter.emit(message.event);
|
||||
this.warningNotificationEmitter.emit(message.event.message);
|
||||
}
|
||||
if (message.action === 'log.info') {
|
||||
this.infoNotificationEmitter.emit(message.event);
|
||||
this.infoNotificationEmitter.emit(message.event.message);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user