Skip to content

Commit

Permalink
Nested buttons need ArgumentTemplate love too
Browse files Browse the repository at this point in the history
  • Loading branch information
programcsharp committed Jan 12, 2018
1 parent eaa36a5 commit b2a4071
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
4 changes: 2 additions & 2 deletions Build/CommonAssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@
//
// You can specify all the values or you can default the Revision and Build Numbers
// by using the '*' as shown below:
[assembly: AssemblyVersion("2.0.1")]
[assembly: AssemblyFileVersion("2.0.1")]
[assembly: AssemblyVersion("2.0.2")]
[assembly: AssemblyFileVersion("2.0.2")]
//[assembly: AssemblyInformationalVersion("2.0-alpha6")]
11 changes: 5 additions & 6 deletions Griddly/Views/Shared/Griddly/BootstrapButton.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,6 @@
*@

@model GriddlyButton
@{
if (Model.ArgumentTemplate != null)
{
Model.Argument = Model.ArgumentTemplate(ViewData["ResolveContext"]).ToString();
}
}
@if (Model is GriddlyHtmlButton)
{
@(((GriddlyHtmlButton)Model).HtmlTemplate(Model))
Expand Down Expand Up @@ -56,6 +50,11 @@ else

@helper RenderLink(GriddlyButton button, bool isDropdown, bool isMenuItem)
{
if (button.ArgumentTemplate != null)
{
button.Argument = button.ArgumentTemplate(ViewData["ResolveContext"]).ToString();
}

string href = null;
if (button.Action != GriddlyButtonAction.Modal && (button.Action != GriddlyButtonAction.Navigate || (isDropdown && button.DropdownCaret != GriddlyDropdownCaret.Split)))
{
Expand Down

0 comments on commit b2a4071

Please sign in to comment.