ngx-hana-nameserver-history-viewer 1.2.0-9.9.beta → 1.2.1-1.beta

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3532,11 +3532,13 @@ class NameServerHistoryComponent {
3532
3532
  async ngOnChanges(changes) {
3533
3533
  const fbc = changes.fileBuffer;
3534
3534
  if (fbc && fbc.currentValue && fbc.currentValue !== fbc.previousValue) {
3535
+ console.log('file changed: ', fbc.currentValue, fbc.previousValue);
3535
3536
  // simulate selecting file
3536
- const simulatedEvent = { target: { files: [blobToFile(this.fileBuffer, this.streamModeFileName)] } };
3537
+ const simulatedEvent = { target: { files: [blobToFile(fbc.currentValue, this.streamModeFileName)] } };
3537
3538
  await this.fileSelected(simulatedEvent);
3538
3539
  this.port = undefined; // clear the port selection
3539
3540
  if (this.autoDisplay) {
3541
+ this.onResize(); // ngAfterViewInit/resize won't work in electron
3540
3542
  this.showChart();
3541
3543
  }
3542
3544
  }