File tree Expand file tree Collapse file tree
src/routes/(console)/project-[region]-[project]/databases/database-[database]/table-[table] Expand file tree Collapse file tree Original file line number Diff line number Diff line change 186186 leadingIcon ={IconDownload }
187187 on:click ={() => {
188188 trackEvent (Click .DatabaseExportCsv );
189- goto (
190- ` ${base }/project-${page .params .region }-${page .params .project }/databases/database-${page .params .database }/table-${page .params .table }/export `
191- );
189+ const queryParam = page . url . searchParams . get ( ' query ' );
190+ const exportUrl = ` ${base }/project-${page .params .region }-${page .params .project }/databases/database-${page .params .database }/table-${page .params .table }/export${ queryParam ? ` ?query=${ queryParam } ` : ' ' } ` ;
191+ goto ( exportUrl );
192192 }}>
193193 Export CSV
194194 </ActionMenu .Item .Button >
Original file line number Diff line number Diff line change 139139
140140 trackEvent (Submit .DatabaseExportCsv );
141141
142- await goto (
143- ` ${base }/project-${page .params .region }-${page .params .project }/databases/database-${page .params .database }/table-${page .params .table } `
144- );
142+ const queryParam = page . url . searchParams . get ( ' query ' );
143+ const tableUrl = ` ${base }/project-${page .params .region }-${page .params .project }/databases/database-${page .params .database }/table-${page .params .table }${ queryParam ? ` ?query=${ queryParam } ` : ' ' } ` ;
144+ await goto ( tableUrl );
145145 } catch (error ) {
146146 addNotification ({
147147 type: ' error' ,
161161<Wizard
162162 title =" Export CSV"
163163 columnSize =" s"
164- href ={` ${base }/project-${page .params .region }-${page .params .project }/databases/database-${page .params .database }/table-${page .params .table } ` }
164+ href ={` ${base }/project-${page .params .region }-${page .params .project }/databases/database-${page .params .database }/table-${page .params .table }${ page . url . searchParams . get ( ' query ' ) ? ` ?query=${ page . url . searchParams . get ( ' query ' )} ` : ' ' } ` }
165165 bind:showExitModal
166166 confirmExit
167167 column >
You can’t perform that action at this time.
0 commit comments