Fix seed URLs reset on JSON view toggle (#172)

closes #160
This commit is contained in:
sua yoo 2022-03-02 18:08:45 -08:00 committed by GitHub
parent 373c489b00
commit c888a45d97
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 6 deletions

View File

@ -643,9 +643,12 @@ export class CrawlTemplatesDetail extends LiteElement {
</sl-switch>
</div>
${this.isSeedsJsonView
? this.renderSeedsJson()
: this.renderSeedsForm()}
<div class="${this.isSeedsJsonView ? "" : "hidden"}">
${this.renderSeedsJson()}
</div>
<div class="grid gap-5${this.isSeedsJsonView ? " hidden" : ""}">
${this.renderSeedsForm()}
</div>
<div class="text-right">
<sl-button

View File

@ -374,9 +374,12 @@ export class CrawlTemplatesNew extends LiteElement {
</sl-switch>
</div>
${this.isSeedsJsonView
? this.renderSeedsJson()
: this.renderSeedsForm()}
<div class="${this.isSeedsJsonView ? "" : "hidden"}">
${this.renderSeedsJson()}
</div>
<div class="grid gap-5${this.isSeedsJsonView ? "hidden" : ""}">
${this.renderSeedsForm()}
</div>
</section>
`;
}