File tree Expand file tree Collapse file tree 2 files changed +13
-2
lines changed
usr-web/src/routes/(apps)/manifest Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -344,7 +344,7 @@ async fn update_order(
344344 ref_number : ActiveValue :: Set ( update_order. ref_number ) ,
345345 } ;
346346
347- active_model. insert ( tx) . await ?;
347+ active_model. update ( tx) . await ?;
348348
349349 Result :: < _ , sea_orm:: DbErr > :: Ok ( ( ) )
350350 } )
Original file line number Diff line number Diff line change 33 import { PUBLIC_API_ENDPOINT } from ' $env/static/public' ;
44 import type { Team } from ' $lib' ;
55
6- let hideInStorage = $state (false );
6+ let hideInStorage = $state (true );
77 let selectedOrderId: number | null = $state (null );
88 let selectedOrderIndex: number = $state (0 );
99 let fetching = $state (false );
188188 <button onclick ={exportCSV }> Export CSV </button >
189189 </div >
190190 </div >
191+ <div class =" table-fix-head" >
191192 <table >
192193 <thead >
193194 <tr >
254255 {/each }
255256 </tbody >
256257 </table >
258+ </div >
257259</section >
258260
259261<section id =" order-operations" class =" mt-4" >
641643 }
642644 #order-operations-content {
643645 background-color : lightgray ;
646+ min-height : 30rem ;
644647 }
645648 #order-operations-content > button {
646649 background-color : darkgray ;
661664 text-decoration : underline ;
662665 color : blue ;
663666 }
667+ .table-fix-head {
668+ max-height : 35rem ;
669+ overflow-y : scroll ;
670+ }
671+ .table-fix-head thead th {
672+ position : sticky ;
673+ top : 0px ;
674+ }
664675 </style >
You can’t perform that action at this time.
0 commit comments