web fixes

This commit is contained in:
Priec
2026-08-14 18:46:31 +02:00
parent 0e6207fb44
commit 1c3d292479
13 changed files with 1458 additions and 105 deletions

View File

@@ -54,6 +54,12 @@ pub(crate) async fn load_page(
.column_types,
);
// The panel holds a column to the rules of the table it is being described
// for, so it is told what that table is on every render rather than left to
// read a copy that a `refresh` could have moved on from.
draft.columns.global = draft.global;
draft.columns.table_name = draft.table_name.trim().to_ascii_lowercase();
let tree = definitions
.get_profile_tree(
authenticated_request(headers, Empty {}).map_err(|_| LoadError::Unauthenticated)?,
@@ -88,7 +94,7 @@ pub(crate) async fn load_page(
.into_iter()
// The profile's ledger accounts are not a link target of their own: an
// ACCOUNTING column is how a row is posted to one.
.filter(|table| table.name != "accounts")
.filter(|table| table.name != crate::schema::ACCOUNTS_TABLE)
.map(|table| RelationTableOption {
name: table.name,
global: table.global,