src.app.modules.component.components.sub.execution-panel.execution-panel.component.ts Maven / Gradle / Ivy
import { Component, EventEmitter, Input, Output, OnChanges} from '@angular/core';
@Component({
selector: 'chutney-execution-panel-component',
templateUrl: './execution-panel.component.html',
styleUrls: ['./execution-panel.component.scss']
})
export class ExecutionPanelComponent implements OnChanges {
@Input() executionResult: any;
@Output() closeEvent = new EventEmitter();
info: Object[];
errors: Object[];
constructor(
) {
}
ngOnChanges() {
this.info = this.getInfos();
this.errors = this.getErrors();
}
close() {
this.info = [];
this.errors = [];
this.closeEvent.emit();
}
getErrors() {
const result = [];
if (this.executionResult.report) {
this.searchErrors(this.executionResult.report, result);
}
return result;
}
getInfos() {
const result = [];
if (this.executionResult.report) {
this.searchInfo(this.executionResult.report, result);
}
return result;
}
private searchInfo(report: Object, result: Array
© 2015 - 2025 Weber Informatics LLC | Privacy Policy