...
This commit is contained in:
@@ -4,16 +4,16 @@ namespace Services.Website;
|
||||
|
||||
public class DialogContents
|
||||
{
|
||||
public string Title { get; set; }
|
||||
public string Message { get; set; }
|
||||
public string ConfirmButtonLabel { get; set; }
|
||||
public string Title { get; set; } = string.Empty;
|
||||
public string Message { get; set; } = string.Empty;
|
||||
public string ConfirmButtonLabel { get; set; } = string.Empty;
|
||||
public EventCallback<EventArgs> OnConfirm { get; set; }
|
||||
public EventCallback<EventArgs> OnCancel { get; set; }
|
||||
}
|
||||
|
||||
public class MyDialogService : IMyDialogService
|
||||
{
|
||||
private DialogContents _dialogContents;
|
||||
private DialogContents _dialogContents = null!;
|
||||
|
||||
public bool IsVisible { get; set; }
|
||||
|
||||
|
||||
@@ -7,8 +7,7 @@ public class PermissionService : IPermissionService, IDisposable
|
||||
private readonly IStorageService _storageService;
|
||||
private IJSRuntime _jsRuntime;
|
||||
private IToastService _toastService;
|
||||
private bool isLoaded;
|
||||
private bool isStorageEnabled = false;
|
||||
|
||||
|
||||
public PermissionService(IJSRuntime jsRuntime, IToastService toastService, IStorageService storageService)
|
||||
{
|
||||
|
||||
@@ -50,7 +50,7 @@ public class StorageService : IStorageService
|
||||
|
||||
public void SetValue<T>(string key, T value)
|
||||
{
|
||||
if (key.Equals(StorageKeys.EnabledStorage) && value.Equals(true))
|
||||
if (value != null && key.Equals(StorageKeys.EnabledStorage) && value.Equals(true))
|
||||
{
|
||||
_localStorageService.SetItem(key, value);
|
||||
NotifyDataChanged();
|
||||
|
||||
Reference in New Issue
Block a user