Browse Source
Use outline variation for Cancel in Modals
pull/18842/head
Enis Necipoglu
3 years ago
No known key found for this signature in database
GPG Key ID: 1EC55E13241E1680
1 changed files with
2 additions and
2 deletions
-
framework/src/Volo.Abp.AspNetCore.Mvc.UI.Bootstrap/TagHelpers/Modal/AbpModalFooterTagHelperService.cs
|
|
|
@ -90,13 +90,13 @@ public class AbpModalFooterTagHelperService : AbpTagHelperService<AbpModalFooter |
|
|
|
return element.ToHtmlString(); |
|
|
|
} |
|
|
|
|
|
|
|
protected virtual string GetCancelButton() |
|
|
|
protected virtual string GetCancelButton(bool isDestructive = false) |
|
|
|
{ |
|
|
|
var element = new TagBuilder("button"); |
|
|
|
element.Attributes.Add("type", "button"); |
|
|
|
element.Attributes.Add("data-bs-dismiss", "modal"); |
|
|
|
element.AddCssClass("btn"); |
|
|
|
element.AddCssClass("btn-secondary"); |
|
|
|
element.AddCssClass("btn-outline-primary"); |
|
|
|
element.InnerHtml.Append(_localizer["Cancel"]); |
|
|
|
|
|
|
|
return element.ToHtmlString(); |
|
|
|
|