Skip to content

Commit 716f632

Browse files
committed
Correctly set button classname in helpers.
1 parent 72babb7 commit 716f632

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Griddly.Mvc/GriddlySettings.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ public GriddlySettings Button(Func<object, object> argumentTemplate, string capt
138138
Icon = icon,
139139
Action = action,
140140
EnableOnSelection = enableOnSelection.Value,
141-
ClassName = className,
141+
ClassName = className ?? GriddlySettings.DefaultButtonClassName,
142142
Target = target
143143
});
144144
}
@@ -155,7 +155,7 @@ public GriddlySettings Button(string argument, string caption, string icon = nul
155155
Icon = icon,
156156
Action = action,
157157
EnableOnSelection = enableOnSelection.Value,
158-
ClassName = className,
158+
ClassName = className ?? GriddlySettings.DefaultButtonClassName,
159159
Target = target
160160
});
161161
}

0 commit comments

Comments
 (0)