Skip to content

Commit

Permalink
Missing space in accounts column of Domain list (closes #5)
Browse files Browse the repository at this point in the history
  • Loading branch information
mdecimus committed Apr 23, 2024
1 parent dc70104 commit c65fc6d
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 15 deletions.
2 changes: 1 addition & 1 deletion src/components/form/stacked_badge.rs
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ pub fn StackedBadge(
}
>

+
"+ "
{add_button_text}

</button>
Expand Down
31 changes: 19 additions & 12 deletions src/pages/config/schema/smtp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1068,18 +1068,6 @@ impl Builder<Schemas, ()> {
.build()
// AUTH stage
.new_schema("smtp-in-auth")
.new_field("session.auth.directory")
.label("Directory")
.help("Specifies the directory to use for authentication")
.default(Expression::new([("local_port != 25", "'*'")], "false"))
.typ(Type::Expression)
.input_check(
[],
[
Validator::Required,
Validator::IsValidExpression(has_ehlo_hars),
],
)
.new_field("session.auth.require")
.label("Require Authentication")
.help(concat!(
Expand All @@ -1093,6 +1081,25 @@ impl Builder<Schemas, ()> {
"e-mail addresses must match the sender of the email message"
))
.default("true")
.typ(Type::Expression)
.input_check(
[],
[
Validator::Required,
Validator::IsValidExpression(has_sender_vars),
],
)
.new_field("session.auth.directory")
.label("Directory")
.help("Specifies the directory to use for authentication")
.default(Expression::new([("local_port != 25", "'*'")], "false"))
.input_check(
[],
[
Validator::Required,
Validator::IsValidExpression(has_ehlo_hars),
],
)
.new_field("session.auth.errors.total")
.label("Max Errors")
.help(concat!(
Expand Down
3 changes: 1 addition & 2 deletions src/pages/directory/domains/list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -335,8 +335,7 @@ fn DomainItem(domain: Domain) -> impl IntoView {
class="inline-flex items-center gap-x-1 text-sm text-blue-600 decoration-2 hover:underline font-medium dark:focus:outline-none dark:focus:ring-1 dark:focus:ring-gray-600"
href=action_url
>
{domain.addresses}
accounts
{maybe_plural(domain.addresses as usize, "account", "accounts")}
</a>
</ListItem>

Expand Down

0 comments on commit c65fc6d

Please sign in to comment.