Skip to content

Privacy-first password manager with built-in email aliasing. Fully encrypted and self-hostable.

Code style refactor (#11)

Leendert de Borsta3e454446d0f
diff --git a/src/AliasVault.WebApp/Auth/Components/InputTextField.razor b/src/AliasVault.WebApp/Auth/Components/InputTextField.razor
index 19770ac83..d0777464d 100644
--- a/src/AliasVault.WebApp/Auth/Components/InputTextField.razor
+++ b/src/AliasVault.WebApp/Auth/Components/InputTextField.razor
@@ -37,5 +37,5 @@
/// <summary>
/// Gets or sets additional attributes for the input field.
/// </summary>
- [Parameter(CaptureUnmatchedValues = true)] public Dictionary<string, object>? AdditionalAttributes { get; set; } = new();
+ [Parameter(CaptureUnmatchedValues = true)] public Dictionary<string, object?>? AdditionalAttributes { get; set; } = new();
}
diff --git a/src/AliasVault.WebApp/Components/EditFormRow.razor b/src/AliasVault.WebApp/Components/EditFormRow.razor
index f7ff61bf2..49a0d0f9f 100644
--- a/src/AliasVault.WebApp/Components/EditFormRow.razor
+++ b/src/AliasVault.WebApp/Components/EditFormRow.razor
@@ -8,9 +8,23 @@
</div>
@code {
- [Parameter] public string Label { get; set; } = "Value";
- [Parameter] public string Value { get; set; } = string.Empty;
- [Parameter] public EventCallback<string> ValueChanged { get; set; }
+ /// <summary>
+ /// Label for the input field.
+ /// </summary>
+ [Parameter]
+ public string Label { get; set; } = "Value";
+
+ /// <summary>
+ /// Value of the input field.
+ /// </summary>
+ [Parameter]
+ public string Value { get; set; } = string.Empty;
+
+ /// <summary>
+ /// Callback that is triggered when the value changes.
+ /// </summary>
+ [Parameter]
+ public EventCallback<string?> ValueChanged { get; set; }
private string _inputId = Guid.NewGuid().ToString();