Skip to content

Instantly share code, notes, and snippets.

@wadewegner
Created June 19, 2019 18:02
Show Gist options
  • Save wadewegner/c311d3e7bc474c725f2356a4f527fcc5 to your computer and use it in GitHub Desktop.
Save wadewegner/c311d3e7bc474c725f2356a4f527fcc5 to your computer and use it in GitHub Desktop.
<template>
<lightning-card title="Create a Scratch Org">
<p class="slds-p-horizontal_small">
Enter your values to click Submit to create a Scratch Org.
</p>
<p class="slds-p-horizontal_small">
<lightning-input label="Org Name" value={orgName} onchange={handleChange}></lightning-input>
</p>
<p class="slds-p-horizontal_small">
<lightning-input label="Edition" value={orgEdition} onchange={handleChange}></lightning-input>
</p>
<div class="slds-m-top_medium slds-m-bottom_x-large">
<lightning-button variant="brand" label="Create" title="Create scratch org" onclick={handleClick} class="slds-m-left_x-small"></lightning-button>
</div>
<div class="slds-m-top_medium slds-m-bottom_x-large">
<template if:true={loaded}>
<p class="slds-p-horizontal_small">
<lightning-formatted-url value={scratchOrgOpenUrl} tooltip="Go to {scratchOrgOpenUrl}" label="Open Scratch Org" target="_blank" ></lightning-formatted-url>
</p>
</template>
<template if:false={loaded}>
<lightning-spinner alternative-text="Loading"></lightning-spinner>
</template>
</div>
</lightning-card>
</template>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment