Skip to content

Commit

Permalink
resolved issue #98
Browse files Browse the repository at this point in the history
  • Loading branch information
daveshanley committed Apr 30, 2024
1 parent ea06bdb commit c43a591
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ui/src/components/transaction/transaction-container.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import {AreFiltersActive, WiretapFilters} from "@/model/controls";
import {TransactionLinkCache} from "@/model/link_cache";
import {GetBagManager} from "@pb33f/saddlebag";
import dividerCss from "@/components/divider.css";
import {SpecControlsComponent} from "@/components/transaction/spec_controls";

@customElement('http-transaction-container')
export class HttpTransactionContainerComponent extends LitElement {
Expand Down Expand Up @@ -49,6 +50,9 @@ export class HttpTransactionContainerComponent extends LitElement {
@query('spec-editor')
private _specEditor: SpecEditor;

@query('spec-controls')
private _specControls: SpecControlsComponent;

private _filters: WiretapFilters;

constructor(allTransactionStore: Bag<HttpTransaction>,
Expand Down Expand Up @@ -311,6 +315,7 @@ export class HttpTransactionContainerComponent extends LitElement {

locationSelected(e: CustomEvent<ViolationLocation>) {
this._showSpec = true;
this._specControls.specVisible = true;
this.requestUpdate();
// wait for the dom to update, then select the location in the editor.
setTimeout(() => {
Expand Down

0 comments on commit c43a591

Please sign in to comment.