Skip to content

Instantly share code, notes, and snippets.

@wadewegner
Created June 19, 2019 18:02
Show Gist options
  • Select an option

  • Save wadewegner/c311d3e7bc474c725f2356a4f527fcc5 to your computer and use it in GitHub Desktop.

Select an option

Save wadewegner/c311d3e7bc474c725f2356a4f527fcc5 to your computer and use it in GitHub Desktop.

Revisions

  1. wadewegner created this gist Jun 19, 2019.
    29 changes: 29 additions & 0 deletions create_scratch.html
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,29 @@
    <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>