Feature/setup #54

Merged
leon.hoppe merged 17 commits from feature/setup into dev 2025-01-18 13:30:40 +01:00
2 changed files with 7 additions and 2 deletions
Showing only changes of commit 3dde278955 - Show all commits

View File

@@ -256,9 +256,14 @@
}
StateHasChanged();
return _validationErrors
var valid = _validationErrors
.Select(err => err.Value.Count)
.All(c => c == 0);
if (!valid) return false;
var dialog = await Dialogs.ShowConfirmationAsync($"Do you really want to {(_currentlyEditing ? "edit" : "create")} this entry?");
var result = await dialog.Result;
return !result.Cancelled;
}
private enum InputType {

View File

@@ -2,7 +2,7 @@
namespace HopFrame.Web.Models;
public class RelationPickerDialogData(TableConfig sourceTable, object? current) {
public sealed class RelationPickerDialogData(TableConfig sourceTable, object? current) {
public object? Object { get; set; } = current;
public TableConfig SourceTable { get; init; } = sourceTable;
}