Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/manglemix/usr-vm
Browse files Browse the repository at this point in the history
  • Loading branch information
manglemix committed Feb 5, 2025
2 parents 59bbfa3 + 01bd82e commit d96a164
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
2 changes: 1 addition & 1 deletion usr-backend/src/manifest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ async fn update_order(
ref_number: ActiveValue::Set(update_order.ref_number),
};

active_model.insert(tx).await?;
active_model.update(tx).await?;

Result::<_, sea_orm::DbErr>::Ok(())
})
Expand Down
13 changes: 12 additions & 1 deletion usr-web/src/routes/(apps)/manifest/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import { PUBLIC_API_ENDPOINT } from '$env/static/public';
import type { Team } from '$lib';
let hideInStorage = $state(false);
let hideInStorage = $state(true);
let selectedOrderId: number | null = $state(null);
let selectedOrderIndex: number = $state(0);
let fetching = $state(false);
Expand Down Expand Up @@ -188,6 +188,7 @@
<button onclick={exportCSV}> Export CSV </button>
</div>
</div>
<div class="table-fix-head">
<table>
<thead>
<tr>
Expand Down Expand Up @@ -254,6 +255,7 @@
{/each}
</tbody>
</table>
</div>
</section>

<section id="order-operations" class="mt-4">
Expand Down Expand Up @@ -641,6 +643,7 @@
}
#order-operations-content {
background-color: lightgray;
min-height: 30rem;
}
#order-operations-content > button {
background-color: darkgray;
Expand All @@ -661,4 +664,12 @@
text-decoration: underline;
color: blue;
}
.table-fix-head {
max-height: 35rem;
overflow-y: scroll;
}
.table-fix-head thead th {
position: sticky;
top: 0px;
}
</style>

0 comments on commit d96a164

Please sign in to comment.