-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changed book forms and book admin UI options
- Loading branch information
1 parent
cb4d55e
commit 1749f59
Showing
11 changed files
with
296 additions
and
100 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
<button type="button" @onclick="GoBack" class="btn"> | ||
<button type="button" @onclick="GoBack" class="btn absolute"> | ||
<span class="oi oi-arrow-left" aria-hidden="true"></span> | ||
</button> | ||
|
||
@code { | ||
@inject NavigationManager navManager | ||
[Inject] NavigationManager NavManager { get; set; } | ||
|
||
|
||
[Parameter] | ||
public string backLink {get; set;} | ||
|
||
void GoBack() | ||
{ | ||
navManager.NavigateTo(backLink); | ||
NavManager.NavigateTo(backLink); | ||
} | ||
} |
14 changes: 7 additions & 7 deletions
14
BookStoreApp.Blazor.Server.UI/Components/SubmitButton.razor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,25 @@ | ||
|
||
<MudButton Disabled="@loadingVar" OnClick="Loading" ButtonType="ButtonType.Submit" Variant="Variant.Filled" Class="bg-primary text-white"> | ||
@if (loadingVar) | ||
<MudButton Disabled="@IsLoading" OnClick="Loading" ButtonType="ButtonType.Submit" Variant="Variant.Filled" Class="bg-primary text-white"> | ||
@if (IsLoading) | ||
{ | ||
<MudProgressCircular Class="ms-n1" Size="Size.Small" Indeterminate="true" /> | ||
} | ||
else | ||
{ | ||
<MudText>@text</MudText> | ||
<MudText>@Text</MudText> | ||
} | ||
</MudButton> | ||
|
||
@code { | ||
[Parameter] | ||
public bool loadingVar { get; set; } = false; | ||
public bool IsLoading { get; set; } = false; | ||
[Parameter] | ||
public string text { get; set; } = "Submit"; | ||
public string Text { get; set; } = "Submit"; | ||
[Parameter] | ||
public Color buttonColor { get; set; } = Color.Primary; | ||
public Color ButtonColor { get; set; } = Color.Primary; | ||
|
||
void Loading() | ||
{ | ||
loadingVar = true; | ||
IsLoading = true; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.