{#if !$enterpriseLicense}
Deploy to staging/prod from the web UI is only available with an enterprise license
{:else if notSet == true}
As an admin, go to Settings {'->'} Workspace {'->'} Deployment UI
{:else}
Share this link to have another properly permissioned
user do the deployment
Destination Workspace Workspace to deploy to is set in the workspace settings
{#if seeTarget == undefined}
{:else if seeTarget == true}
All related deployable items
{#each dependencies ?? [] as { kind, path, include }}
{@const statusPath = computeStatusPath(kind, path)}
{kind}
{path}
{#if allAlreadyExists[statusPath] == false}
{#if include}
New This {kind} doesn't exist yet on the target and will be created by the deployment
{:else}
Missing
{#if kind == 'resource_type'}
Resource types are not re-deployed by default. We strongly recommend to add
shared resource types in 'admin' workspace, which will have them be shared to
every workspace.
{:else}
This {kind} doesn't exist and is not included in the deployment. Variables and Resources
are considered to be workspace specific and are never included by default.
{/if}
{/if}
{:else if allAlreadyExists[statusPath] == true}
{/if}
{#if deploymentStatus[statusPath]}
{#if deploymentStatus[statusPath].status == 'loading'}
{:else if deploymentStatus[statusPath].status == 'deployed'}
Deployed
{:else if deploymentStatus[statusPath].status == 'failed'}
Failed{deploymentStatus[statusPath].error}
{/if}
{:else}
{/if}
{/each}
{#if !hideButton}
{/if}
{:else}
Ask a permissioned user to deploy this item using the shareable link or get the proper
permissions on the target workspace
{/if}
{/if}