Skip to content

Commit

Permalink
loading state
Browse files Browse the repository at this point in the history
  • Loading branch information
oyamauchi committed Aug 29, 2023
1 parent 4e519b5 commit 512bcc4
Showing 1 changed file with 17 additions and 15 deletions.
32 changes: 17 additions & 15 deletions src/state-calculator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -236,21 +236,23 @@ export class RewiringAmericaStateCalculator extends LitElement {
)}
</div>
${utilityForm}
${this.isFormComplete() && this.utility
? html`
<div class="separator"></div>
${this._task.render({
pending: loadingTemplate,
complete: results =>
stateIncentivesTemplate(
results,
this.selectedProject,
this.selectedOtherTab,
newSelection => (this.selectedOtherTab = newSelection),
),
error: errorTemplate,
})}
`
${this.isFormComplete()
? this.utility
? html`
<div class="separator"></div>
${this._task.render({
pending: loadingTemplate,
complete: results =>
stateIncentivesTemplate(
results,
this.selectedProject,
this.selectedOtherTab,
newSelection => (this.selectedOtherTab = newSelection),
),
error: errorTemplate,
})}
`
: loadingTemplate()
: nothing}
${CALCULATOR_FOOTER}
</div>
Expand Down

0 comments on commit 512bcc4

Please sign in to comment.