-
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.
ActionEditor improvements with TokenData and balance data
- Loading branch information
1 parent
b3fe20d
commit 1eb0800
Showing
7 changed files
with
229 additions
and
67 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
@using aoWebWallet.Models | ||
|
||
<MudStack> | ||
Target: @AoAction.Target?.Value | ||
</MudStack> | ||
|
||
<MudStack> | ||
@foreach (var value in AoAction.Filled) | ||
{ | ||
<p>@value.Key = @value.Value | @value.ParamType</p> | ||
@foreach (var arg in value.Args) | ||
{ | ||
<b>@arg</b> | ||
} | ||
} | ||
|
||
</MudStack> | ||
|
||
<MudStack> | ||
@foreach (var param in AoAction.AllInputs) | ||
{ | ||
if (param.ParamType == ActionParamType.Input | ||
|| param.ParamType == ActionParamType.Integer | ||
|| param.ParamType == ActionParamType.Process | ||
) | ||
{ | ||
<ActionInputComponent ActionParam="param" ReadOnly="@ReadOnly" /> | ||
} | ||
else if (param.ParamType == ActionParamType.Quantity || param.ParamType == ActionParamType.Balance) | ||
{ | ||
var tokenId = param.Args.FirstOrDefault(); | ||
if (tokenId != null) | ||
{ | ||
<ActionQuantityComponent ActionParam="param" TokenId="@tokenId" Address="@Address" ReadOnly="@ReadOnly" /> | ||
} | ||
|
||
|
||
|
||
} | ||
} | ||
|
||
</MudStack> | ||
|
||
|
||
@code { | ||
[Parameter] | ||
public required AoAction AoAction { get; set; } | ||
|
||
[Parameter] | ||
public bool ReadOnly { get; set; } | ||
|
||
[Parameter] | ||
public string? Address { get; set; } | ||
} |
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