File tree Expand file tree Collapse file tree 3 files changed +16
-8
lines changed
src/routes/(console)/project-[region]-[project]/functions/function-[function] Expand file tree Collapse file tree 3 files changed +16
-8
lines changed Original file line number Diff line number Diff line change 1616 import { func } from ' ../store' ;
1717 import { capitalize } from ' $lib/helpers/string' ;
1818 import { getEffectiveBuildStatus } from ' $lib/helpers/buildTimeout' ;
19+ import { deploymentStatusConverter } from ' $lib/stores/git' ;
1920 import { regionalConsoleVariables } from ' $routes/(console)/project-[region]-[project]/store' ;
2021 import { isCloud } from ' $lib/system' ;
2122 import { IconInfo } from ' @appwrite.io/pink-icons-svelte' ;
3839 footer? : Snippet ;
3940 } = $props ();
4041
41- let effectiveStatus = $derived (getEffectiveBuildStatus (deployment , $regionalConsoleVariables ));
42- let totalSize = $derived (humanFileSize (deployment ?.totalSize ?? 0 ));
42+ const effectiveStatus = $derived (
43+ getEffectiveBuildStatus (deployment , $regionalConsoleVariables )
44+ );
45+ const displayStatus = $derived (effectiveStatus === ' finalizing' ? ' ready' : effectiveStatus );
46+ const totalSize = $derived (humanFileSize (deployment ?.totalSize ?? 0 ));
4347 </script >
4448
4549{#snippet titleSnippet (title : string )}
129133 <Layout .Stack gap =" xxs" inline >
130134 {@render titleSnippet (' Status' )}
131135 <Typography .Text variant =" m-400" color =" --fgcolor-neutral-primary" >
132- <Status status ={effectiveStatus } label ={effectiveStatus } />
136+ <Status
137+ status ={deploymentStatusConverter (displayStatus )}
138+ label ={displayStatus } />
133139 </Typography .Text >
134140 </Layout .Stack >
135141 {:else }
Original file line number Diff line number Diff line change 4040
4141 let { data } = $props ();
4242
43- let effectiveStatus = $derived (
43+ const effectiveStatus = $derived (
4444 getEffectiveBuildStatus (data .deployment , $regionalConsoleVariables )
4545 );
46+ const displayStatus = $derived (effectiveStatus === ' finalizing' ? ' ready' : effectiveStatus );
4647 let showDelete = $state (false );
4748 let showCancel = $state (false );
4849 let showActivate = $state (false );
157158 <Card .Base padding =" s" >
158159 <Accordion
159160 title =" Deployment logs"
160- badge ={capitalize (effectiveStatus )}
161+ badge ={capitalize (displayStatus )}
161162 open
162- badgeType ={badgeTypeDeployment (effectiveStatus )}
163+ badgeType ={badgeTypeDeployment (displayStatus )}
163164 hideDivider >
164165 <Layout .Stack gap =" xl" >
165166 {#key data .deployment .buildLogs }
Original file line number Diff line number Diff line change 9898 deployment ,
9999 $regionalConsoleVariables
100100 )}
101+ {@const displayStatus = effectiveStatus === ' finalizing' ? ' ready' : effectiveStatus }
101102 <Table .Row .Link
102103 {root }
103104 id ={deployment .$id }
113114 <Status status =" complete" label =" Active" />
114115 {:else }
115116 <Status
116- status ={deploymentStatusConverter (effectiveStatus )}
117- label ={capitalize (effectiveStatus )} />
117+ status ={deploymentStatusConverter (displayStatus )}
118+ label ={capitalize (displayStatus )} />
118119 {/if }
119120 {:else if column .id === ' type' }
120121 <DeploymentSource {deployment } />
You can’t perform that action at this time.
0 commit comments