dev-preprod-prod logic
This commit is contained in:
@@ -75,7 +75,9 @@
|
||||
$: globalEnvironments = $environmentContextStore?.environments || [];
|
||||
$: globalSelectedEnvId = $environmentContextStore?.selectedEnvId || "";
|
||||
$: globalSelectedEnv = $selectedEnvironmentStore;
|
||||
$: isProdContext = Boolean(globalSelectedEnv?.is_production);
|
||||
$: isProdContext =
|
||||
String(globalSelectedEnv?.stage || "").toUpperCase() === "PROD" ||
|
||||
Boolean(globalSelectedEnv?.is_production);
|
||||
|
||||
function toggleUserMenu(event) {
|
||||
event.stopPropagation();
|
||||
@@ -431,7 +433,7 @@
|
||||
>
|
||||
{#each globalEnvironments as env}
|
||||
<option value={env.id}>
|
||||
{env.name}{env.is_production ? " [PROD]" : ""}
|
||||
{env.name}{(String(env.stage || "").toUpperCase() === "PROD" || env.is_production) ? " [PROD]" : ""}
|
||||
</option>
|
||||
{/each}
|
||||
</select>
|
||||
|
||||
Reference in New Issue
Block a user