Skip to content

Commit

Permalink
Schema fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mdecimus committed Apr 9, 2024
1 parent 14ff58f commit 4c05502
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/pages/config/edit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ enum FetchResult {
NotFound,
}

pub const DEFAULT_SETTINGS_URL: &str = "/settings/system/edit";
pub const DEFAULT_SETTINGS_URL: &str = "/settings/network/edit";

#[component]
pub fn SettingsEdit() -> impl IntoView {
Expand Down
4 changes: 2 additions & 2 deletions src/pages/config/schema/tls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ impl Builder<Schemas, ()> {
.new_field("domains")
.typ(Type::Array)
.input_check([Transformer::Trim], [Validator::Required])
.label("Domains")
.help("Domains covered by this ACME manager")
.label("Subject names")
.help("Hostnames covered by this ACME manager")
.build()
// Default provider
.new_field("default")
Expand Down
13 changes: 11 additions & 2 deletions src/pages/config/schema/tracing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,18 @@ impl Builder<Schemas, ()> {
// Enable
.new_field("enable")
.typ(Type::Boolean)
.label("Enable")
.label("Enable this tracer")
.help("Enable or disable the tracer")
.default("true")
.build()
// Enable
.new_field("ansi")
.typ(Type::Boolean)
.label("Use ANSI colors in logs")
.help("Whether to use ANSI colors in logs")
.display_if_eq("type", ["log", "stdout"])
.default("false")
.build()
// Log Path
.new_field("path")
.typ(Type::Input)
Expand Down Expand Up @@ -127,13 +135,14 @@ impl Builder<Schemas, ()> {
"_id",
"type",
"level",
"enable",
"path",
"prefix",
"rotate",
"transport",
"endpoint",
"headers",
"ansi",
"enable",
])
.build()
.list_title("Logging methods")
Expand Down

0 comments on commit 4c05502

Please sign in to comment.