diff --git a/src/FrontOffice.Main/Shared/ReleaseNotesDialog.razor b/src/FrontOffice.Main/Shared/ReleaseNotesDialog.razor index b4742a0..7446e0b 100644 --- a/src/FrontOffice.Main/Shared/ReleaseNotesDialog.razor +++ b/src/FrontOffice.Main/Shared/ReleaseNotesDialog.razor @@ -4,41 +4,54 @@ - - - @if (IsForceUpdate) - { - بروزرسانی اجباری - } - else - { - نسخه جدید موجود است - } - + @if (IsForceUpdate) + { + + بروزرسانی اجباری + } + else + { + + نسخه جدید موجود است 🎉 + } - @* اطلاعات نسخه *@ - - - نسخه فعلی: - @(OldVersion ?? "---") - - - - نسخه جدید: - @NewVersion - + @* اطلاعات نسخه با انیمیشن *@ + + + + + + نسخه فعلی + + @(OldVersion ?? "---") + + + + + + + نسخه جدید + + @NewVersion + + + + @* پیام آپدیت *@ @if (!string.IsNullOrWhiteSpace(UpdateMessage)) { + Variant="Variant.Text" + Dense="true" + Icon="@Icons.Material.Filled.Info" + Class="rounded-lg"> @UpdateMessage } @@ -46,18 +59,27 @@ @* یادداشت‌های انتشار *@ @if (!string.IsNullOrWhiteSpace(ReleaseNotes)) { - تغییرات این نسخه: - - @((MarkupString)ReleaseNotes) - + + + + تغییرات این نسخه: + + + @((MarkupString)ReleaseNotes) + + } @if (IsForceUpdate) { - - - این بروزرسانی اجباری است و باید انجام شود. - + + + + + این بروزرسانی اجباری است و باید انجام شود. + + } @@ -68,14 +90,17 @@ { - بعداً + Variant="Variant.Text" + Size="Size.Medium"> + بعداً یادآوری کن } + Size="Size.Medium" + StartIcon="@(_isUpdating ? null : Icons.Material.Filled.SystemUpdateAlt)" + Class="px-6"> @if (_isUpdating) { @@ -83,12 +108,29 @@ } else { - بروزرسانی + بروزرسانی کن! } + + @code { [CascadingParameter] private IMudDialogInstance MudDialog { get; set; } = default!;