[hotfix] Update element icon in pipeline details view
@@ -33,8 +33,7 @@ export class PipelineElementComponent implements OnInit {
showImage: any;
iconText: any;
- @Input()
- pipelineElement: PipelineElementUnion;
+ pipelineElement_: PipelineElementUnion;
@Input()
preview: any;
@@ -55,8 +54,7 @@ export class PipelineElementComponent implements OnInit {
}
ngOnInit(): void {
- this.iconText = this.elementIconText.getElementIconText(this.pipelineElement.name);
- this.checkImageAvailable();
+
}
checkImageAvailable() {
@@ -84,4 +82,15 @@ export class PipelineElementComponent implements OnInit {
}
}
+ get pipelineElement() {
+ return this.pipelineElement_;
+ }
+
+ @Input()
+ set pipelineElement(pipelineElement: PipelineElementUnion) {
+ this.pipelineElement_ = pipelineElement;
+ this.iconText = this.elementIconText.getElementIconText(this.pipelineElement.name);
+ this.checkImageAvailable();
+ }
+
}
