Skip to content

Commit 02582c1

Browse files
committed
Check correct icon setting value
1 parent 4db91de commit 02582c1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Griddly/Views/Shared/Griddly/BootstrapButton.cshtml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ else
6666
href = "#" + button.Argument;
6767
}
6868

69-
<a data-role="griddly-button" class="@(!isMenuItem ? "btn btn-default" : null) @(isDropdown && !button.IsSplitDropdown ? "dropdown-toggle" : null) @(!button.Enabled || button.EnableOnSelection == true ? "disabled" : null) @button.ClassName @(!string.IsNullOrWhiteSpace(Model.Icon) ? "btn-with-icon" : null)"
69+
<a data-role="griddly-button" class="@(!isMenuItem ? "btn btn-default" : null) @(isDropdown && !button.IsSplitDropdown ? "dropdown-toggle" : null) @(!button.Enabled || button.EnableOnSelection == true ? "disabled" : null) @button.ClassName @(!string.IsNullOrWhiteSpace(button.Icon) ? "btn-with-icon" : null)"
7070
@*onclick="@(button.Action == GriddlyButtonAction.Javascript ? button.Argument : null)"*@
7171
title="@button.Title"
7272
@Html.AttributeIf("target", button.Action == GriddlyButtonAction.Navigate && !string.IsNullOrWhiteSpace(button.Target), button.Target)
@@ -88,7 +88,7 @@ else
8888
}
8989
}>
9090

91-
@if (!string.IsNullOrWhiteSpace(Model.Icon) && GriddlySettings.IconTemplate != null)
91+
@if (!string.IsNullOrWhiteSpace(button.Icon) && GriddlySettings.IconTemplate != null)
9292
{
9393
@GriddlySettings.IconTemplate(button)
9494
}

0 commit comments

Comments
 (0)