File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
src/routes/(console)/project-[region]-[project]
functions/function-[function] Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 121121 {#if !! data .deployment ?.sourceSize || !! data .deployment ?.sourceSize }
122122 <DownloadActionMenuItem deployment ={data .deployment } {toggle } />
123123 {/if }
124- {#if $canWriteFunctions && data . deployment . status !== ' building ' && data . deployment . status !== ' processing ' && data .deployment ? .status !== ' waiting ' }
124+ {#if $canWriteFunctions && [ ' ready ' , ' failed ' ]. includes ( data .deployment .status ) }
125125 <ActionMenu .Item .Button
126126 status =" danger"
127127 leadingIcon ={IconTrash }
Original file line number Diff line number Diff line change 139139 placement ={' bottom' }>
140140 <div >
141141 <ActionMenu .Item .Button
142- trailingIcon ={IconRefresh }
142+ leadingIcon ={IconRefresh }
143143 disabled ={deployment .sourceSize === 0 }
144144 on:click ={() => {
145145 selectedDeployment = deployment ;
155155 </Tooltip >
156156 {#if deployment .status === ' ready' && deployment .$id !== $func .deploymentId }
157157 <ActionMenu .Item .Button
158- trailingIcon ={IconLightningBolt }
158+ leadingIcon ={IconLightningBolt }
159159 on:click ={() => {
160160 selectedDeployment = deployment ;
161161 showActivate = true ;
182182 {/if }
183183 {#if deployment .status !== ' building' && deployment .status !== ' processing' && deployment .status !== ' waiting' }
184184 <ActionMenu .Item .Button
185- trailingIcon ={IconTrash }
185+ leadingIcon ={IconTrash }
186186 status =" danger"
187187 on:click ={() => {
188188 selectedDeployment = deployment ;
Original file line number Diff line number Diff line change 124124 Cancel
125125 </ActionMenu .Item .Button >
126126 {/if }
127- {#if deployment . status !== ' building ' && deployment . status !== ' processing ' && deployment ? .status !== ' waiting ' }
127+ {#if [ ' ready ' , ' failed ' ]. includes ( deployment .status ) }
128128 <ActionMenu .Item .Button
129129 status =" danger"
130130 leadingIcon ={IconTrash }
You can’t perform that action at this time.
0 commit comments