small fixes

pull/640/head
Yunus Emre Kalkan 7 years ago
parent d3534efcb5
commit 75181aa179

@ -134,10 +134,11 @@ namespace Volo.Abp.AspNetCore.Mvc.UI.Bootstrap.TagHelpers.Form
if (IsSelectGroup(context, model))
{
ProcessSelectGroup(context, output, model);
continue;
}
ProcessInputGroup(context, output, model);
else
{
ProcessInputGroup(context, output, model);
}
}
}

@ -37,9 +37,20 @@ namespace Volo.Abp.AspNetCore.Mvc.UI.Bootstrap.TagHelpers.ListGroup
{
output.Attributes.AddClass("list-group-item");
if (TagHelper.Active ?? false) output.Attributes.AddClass("active");
if (TagHelper.Disabled ?? false) output.Attributes.AddClass("disabled");
if (TagHelper.Type != AbpListItemType.Default) { output.Attributes.AddClass("list-group-item-" + TagHelper.Type.ToString().ToLowerInvariant()); }
if (TagHelper.Active ?? false)
{
output.Attributes.AddClass("active");
}
if (TagHelper.Disabled ?? false)
{
output.Attributes.AddClass("disabled");
}
if (TagHelper.Type != AbpListItemType.Default)
{
output.Attributes.AddClass("list-group-item-" + TagHelper.Type.ToString().ToLowerInvariant());
}
}
protected virtual void MakeLinkIfHrefIsSet()

@ -146,7 +146,7 @@ namespace Volo.Blogging.Posts
var tags = await GetTagsOfPost(id);
_tagRepository.DecreaseUsageCountOfTags(tags.Select(t => t.Id).ToList());
_postTagRepository.DeleteOfPost(id);
_commentRepository.DeleteOfPost(id);
await _commentRepository.DeleteOfPost(id);
await _postRepository.DeleteAsync(id);
}

Loading…
Cancel
Save