Skip to content

Commit

Permalink
migration
Browse files Browse the repository at this point in the history
  • Loading branch information
neozhu committed Nov 6, 2024
1 parent eb95f34 commit b5dcd53
Show file tree
Hide file tree
Showing 14 changed files with 17 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace CleanArchitecture.Blazor.Server.UI.Components.Autocompletes;

public class LanguageAutocomplete : MudAutocomplete<string>
public class LanguageAutocomplete<T> : MudAutocomplete<string>
{
public LanguageAutocomplete()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

namespace CleanArchitecture.Blazor.Server.UI.Components.Autocompletes;

public class MultiTenantAutocomplete : MudAutocomplete<TenantDto>
public class MultiTenantAutocomplete<T> : MudAutocomplete<TenantDto>
{
public MultiTenantAutocomplete()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

namespace CleanArchitecture.Blazor.Server.UI.Components.Autocompletes;

public class PickSuperiorIdAutocomplete : MudAutocomplete<ApplicationUserDto>
public class PickSuperiorIdAutocomplete<T> : MudAutocomplete<ApplicationUserDto>
{
public PickSuperiorIdAutocomplete()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

namespace CleanArchitecture.Blazor.Server.UI.Components.Autocompletes;

public class PickUserAutocomplete : MudAutocomplete<ApplicationUserDto>
public class PickUserAutocomplete<T> : MudAutocomplete<ApplicationUserDto>
{
public PickUserAutocomplete()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace CleanArchitecture.Blazor.Server.UI.Components.Autocompletes;

public class PicklistAutocomplete : MudAutocomplete<string>
public class PicklistAutocomplete<T> : MudAutocomplete<string>
{
public PicklistAutocomplete()
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace CleanArchitecture.Blazor.Server.UI.Components.Autocompletes;

public class TimeZoneAutocomplete : MudAutocomplete<string>
public class TimeZoneAutocomplete<T> : MudAutocomplete<string>
{
public TimeZoneAutocomplete()
{
Expand Down
2 changes: 1 addition & 1 deletion src/Server.UI/Components/Shared/Layout/AppLayout.razor
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@
FullWidth = true
};

var commandPalette = DialogService.Show<SearchDialog>("", options);
var commandPalette =await DialogService.ShowAsync<SearchDialog>("", options);
_commandPaletteOpen = true;

await commandPalette.Result;
Expand Down
4 changes: 2 additions & 2 deletions src/Server.UI/Pages/Documents/Documents.razor
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@
{ x => x.Model, command }
};
var options = new DialogOptions { CloseButton = true, MaxWidth = MaxWidth.Small, FullWidth = true };
var dialog = DialogService.Show<UploadFilesFormDialog>
var dialog = await DialogService.ShowAsync<UploadFilesFormDialog>
(L["Upload Pictures"], parameters, options);
var state = await dialog.Result;
if (state is not null && !state.Canceled)
Expand All @@ -341,7 +341,7 @@
{ nameof(DocumentFormDialog.Model), command }
};
var options = new DialogOptions { CloseButton = true, MaxWidth = MaxWidth.Medium, FullWidth = true };
var dialog = DialogService.Show<DocumentFormDialog>(string.Format(ConstantString.EditTheItem, L["Document"]), parameters, options);
var dialog = await DialogService.ShowAsync<DocumentFormDialog>(string.Format(ConstantString.EditTheItem, L["Document"]), parameters, options);


var state = await dialog.Result;
Expand Down
2 changes: 1 addition & 1 deletion src/Server.UI/Pages/Identity/Roles/Roles.razor
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@
{
var parameters = new DialogParameters<RoleFormDialog> { { x => x.Model, model } };
var options = new DialogOptions { CloseButton = true, CloseOnEscapeKey = true, MaxWidth = MaxWidth.Small, FullWidth = true };
var dialog = DialogService.Show<RoleFormDialog>(title, parameters, options);
var dialog = await DialogService.ShowAsync<RoleFormDialog>(title, parameters, options);
var result = await dialog.Result;

if (result is not null && !result.Canceled)
Expand Down
6 changes: 3 additions & 3 deletions src/Server.UI/Pages/Identity/Users/Users.razor
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@
{ x => x.UserProfile, UserProfile }
};
var options = new DialogOptions { CloseButton = true, CloseOnEscapeKey = true, MaxWidth = MaxWidth.Small, FullWidth = true };
var dialog = DialogService.Show<UserFormDialog>(title, parameters, options);
var dialog = await DialogService.ShowAsync<UserFormDialog>(title, parameters, options);
var result = await dialog.Result;
if (result is not null && !result.Canceled)
{
Expand All @@ -405,7 +405,7 @@
{ x => x.UserProfile, UserProfile }
};
var options = new DialogOptions { CloseButton = true, CloseOnEscapeKey = true, MaxWidth = MaxWidth.Small, FullWidth = true };
var dialog = DialogService.Show<UserFormDialog>(title, parameters, options);
var dialog = await DialogService.ShowAsync<UserFormDialog>(title, parameters, options);
var result = await dialog.Result;
if (result is not null && !result.Canceled)
{
Expand Down Expand Up @@ -673,7 +673,7 @@
{ x => x.Model, model }
};
var options = new DialogOptions { CloseOnEscapeKey = true, CloseButton = true, MaxWidth = MaxWidth.ExtraSmall };
var dialog = DialogService.Show<ResetPasswordDialog>(L["Set Password"], parameters, options);
var dialog = await DialogService.ShowAsync<ResetPasswordDialog>(L["Set Password"], parameters, options);
var result = await dialog.Result;
if (result is not null && !result.Canceled)
{
Expand Down
2 changes: 1 addition & 1 deletion src/Server.UI/Pages/PicklistSets/PicklistSets.razor
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@
{ nameof(CreatePicklistDialog.Model), command }
};
var options = new DialogOptions { CloseButton = true, MaxWidth = MaxWidth.Small, FullWidth = true };
var dialog = DialogService.Show<CreatePicklistDialog>(title, parameters, options);
var dialog = await DialogService.ShowAsync<CreatePicklistDialog>(title, parameters, options);
var state = await dialog.Result;
if (state is not null && !state.Canceled)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@
{ x => x.ContentText, $"{L["Are you sure you want to erase this image?"]}" }
};
var options = new DialogOptions { CloseButton = true, MaxWidth = MaxWidth.ExtraSmall, FullWidth = true };
var dialog = DialogService.Show<ConfirmationDialog>($"{L["Erase imatge"]}", parameters, options);
var dialog = await DialogService.ShowAsync<ConfirmationDialog>($"{L["Erase imatge"]}", parameters, options);
var state = await dialog.Result;

if (state is not null && !state.Canceled)
Expand Down
2 changes: 1 addition & 1 deletion src/Server.UI/Pages/Products/Products.razor
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@
{ x => x.Model, command }
};
var options = new DialogOptions { CloseButton = true, MaxWidth = MaxWidth.Medium, FullWidth = true };
var dialog = DialogService.Show<ProductFormDialog>(title, parameters, options);
var dialog =await DialogService.ShowAsync<ProductFormDialog>(title, parameters, options);
var state = await dialog.Result;

if (state is not null && !state.Canceled)
Expand Down
2 changes: 1 addition & 1 deletion src/Server.UI/Pages/Tenants/Tenants.razor
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@
{ x => x.Model, command }
};
var options = new DialogOptions { CloseButton = true, MaxWidth = MaxWidth.Small, FullWidth = true };
var dialog = DialogService.Show<TenantFormDialog>(title, parameters, options);
var dialog =await DialogService.ShowAsync<TenantFormDialog>(title, parameters, options);
var state = await dialog.Result;
if (state is not null && !state.Canceled)
{
Expand Down

0 comments on commit b5dcd53

Please sign in to comment.