global table profile name from server in web now
This commit is contained in:
@@ -70,11 +70,13 @@ pub(crate) async fn load_page(
|
||||
|
||||
// The global scope is the catalog's answer, here as everywhere else, so a
|
||||
// shared table the admin panel lists is a shared table this page can link
|
||||
// to — see `crate::pages::table_scope`.
|
||||
// to — see `crate::pages::table_scope`. Which profile holds the shared
|
||||
// tables is the server's to say, and the tree above says it.
|
||||
let shared_profile = tree.shared_profile_name.clone();
|
||||
let catalog_tables = definitions
|
||||
.get_table_catalog(
|
||||
authenticated_request(headers, GetTableCatalogRequest {
|
||||
profile_name: crate::pages::GLOBAL_SCOPE.to_string(),
|
||||
profile_name: shared_profile.clone(),
|
||||
})
|
||||
.map_err(|_| LoadError::Unauthenticated)?,
|
||||
)
|
||||
@@ -127,6 +129,7 @@ pub(crate) async fn load_page(
|
||||
|
||||
Ok(AddTablePageState {
|
||||
nav: crate::ui::Nav::from_authorization(headers, "admin", &authorization),
|
||||
shared_profile,
|
||||
profiles: tree
|
||||
.profiles
|
||||
.into_iter()
|
||||
|
||||
Reference in New Issue
Block a user