{#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 {'->'} Dev workspace, to pair this workspace with a
prod workspace on this instance or point it at a workspace on another instance
{:else}
Share this link to have another properly permissioned
user do the deployment
Destination Where this workspace deploys is set in the workspace settings
true}
{allSelected}
onToggleItem={toggleItem}
onSelectAll={selectAll}
onDeselectAll={deselectAll}
emptyMessage="No deployable items found"
>
{#snippet itemActions(item)}
{@const statusPath = item.key}
{@const exists = allAlreadyExists[statusPath]}
{@const status = deploymentStatus[statusPath]}
{@const targetValue = targetOnBehalfOfInfo[statusPath]}
{#if itemNeedsOnBehalfOfSelection(statusPath, item.kind)}
{
onBehalfOfChoice[statusPath] = choice
if (details) customOnBehalfOf[statusPath] = details
}}
kind={item.kind}
canPreserve={canPreserveOnBehalfOf}
customValue={customOnBehalfOf[statusPath]?.permissionedAs}
/>
{/if}
{#if item.kind === 'raw_app'}
Raw
{/if}
{#if exists === false}
{#if item.include}
New This {item.kind} doesn't exist yet on the target and will be created by the deployment
{:else}
Missing
{#if item.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 {item.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 exists === true && !status}
{/if}
{#if !status}
{/if}
{/snippet}
{#snippet footer()}
{targetError ?? 'The remote instance did not accept the request'}
Disconnect above and connect again with a valid token for that instance, or ask someone
permissioned there to deploy this item using the shareable link
{:else}
Ask a permissioned user to deploy this item using the shareable link or get the proper
permissions on the target workspace
{/if}
{/if}