Files
QuantEngineByItz/src/dotnet/QuantEngine.Web/Client/Components/ConfirmDialog.razor
T
kjh2064 543b327d27
WBS-9.3 - NULL Policy CI Gate / NULL Policy Validation (push) Failing after 5s
Quant Engine CI/CD Pipeline / validate-ui-and-storage (push) Has been skipped
Quant Engine CI/CD Pipeline / validate-core (push) Failing after 9s
Deploy to Production / Build & Deploy to Production (push) Failing after 2m32s
fix: MudBlazor v8 compatibility, static asset conflict, deploy host domain
- fix CS0542: rename Users/Assets private members to _users/_assets
- fix CS0246: MudDialogInstance -> IMudDialogInstance
- fix AppTheme: PaletteLight/PaletteDark, string[] FontFamily, string typography values
- fix DataCollectionMonitoring: @(ticker.DataPointCount)개 Korean char parsing
- fix SchedulerService: add missing Hangfire namespaces, fix GetJobStatus return type
- fix Program.cs: move PostgreSQL setup above Hangfire registration
- fix ConfirmDialog: BackdropClick, Canceled spelling for MudBlazor v8
- fix static asset conflict: remove wwwroot/_framework from git tracking
- chore: add wwwroot/_framework/ to .gitignore
- ci: change DEPLOY_HOST from IP to quant.taxbaik.com domain
2026-07-05 17:43:36 +09:00

62 lines
1.8 KiB
Plaintext

@namespace QuantEngine.Web.Client.Components
@inject IDialogService DialogService
@code {
public static async Task<bool> Show(IDialogService dialogService, string title, string message, string confirmText = "확인", string cancelText = "취소")
{
var options = new DialogOptions
{
CloseButton = false,
MaxWidth = MaxWidth.Small,
FullWidth = true,
BackdropClick = false
};
var parameters = new DialogParameters<ConfirmDialog>
{
{ x => x.Title, title },
{ x => x.Message, message },
{ x => x.ConfirmText, confirmText },
{ x => x.CancelText, cancelText }
};
var dialog = await dialogService.ShowAsync<ConfirmDialog>(title, parameters, options);
var result = await dialog.Result;
return !result.Canceled && (bool?)result.Data == true;
}
}
<MudDialog>
<DialogContent>
<MudStack Spacing="2">
<MudText Typo="Typo.h6">@Title</MudText>
<MudText Typo="Typo.body2">@Message</MudText>
</MudStack>
</DialogContent>
<DialogActions>
<MudButton OnClick="Cancel" Color="Color.Default">@CancelText</MudButton>
<MudButton OnClick="Confirm" Color="Color.Primary" Variant="Variant.Filled">@ConfirmText</MudButton>
</DialogActions>
</MudDialog>
@code {
[CascadingParameter]
private IMudDialogInstance MudDialog { get; set; }
[Parameter]
public string Title { get; set; } = "확인";
[Parameter]
public string Message { get; set; } = "";
[Parameter]
public string ConfirmText { get; set; } = "확인";
[Parameter]
public string CancelText { get; set; } = "취소";
private void Confirm() => MudDialog.Close(DialogResult.Ok(true));
private void Cancel() => MudDialog.Cancel();
}