Skip to content

Commit

Permalink
Emit prune config on load
Browse files Browse the repository at this point in the history
  • Loading branch information
sandreae committed Apr 11, 2024
1 parent 2ec14c1 commit aa72dc8
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,14 @@ export class NamaPeerControls {
});
};

componentDidLoad() {
this.namaPruneConfig.emit({
depth: this.pruneByDepth ? this.depth : null,
depthPerLog: this.pruneByDepthPerLog ? this.depthPerLog : null,
ms: this.pruneByTimestamp ? this.secs * 1000 : null,
});
}

render() {
return (
<Host>
Expand Down

0 comments on commit aa72dc8

Please sign in to comment.