Commit 0ffdca79 authored by Savorboard's avatar Savorboard

Fixed dashboard query messages bug.

parent 8773ec6e
......@@ -52,7 +52,7 @@ namespace DotNetCore.CAP.InMemoryStorage
if (!string.IsNullOrEmpty(queryDto.StatusName))
{
expression = expression.Where(x => x.StatusName == queryDto.StatusName);
expression = expression.Where(x => x.StatusName.ToLower() == queryDto.StatusName);
}
if (!string.IsNullOrEmpty(queryDto.Name))
......@@ -85,7 +85,7 @@ namespace DotNetCore.CAP.InMemoryStorage
if (!string.IsNullOrEmpty(queryDto.StatusName))
{
expression = expression.Where(x => x.StatusName == queryDto.StatusName);
expression = expression.Where(x => x.StatusName.ToLower() == queryDto.StatusName);
}
if (!string.IsNullOrEmpty(queryDto.Name))
......@@ -109,6 +109,8 @@ namespace DotNetCore.CAP.InMemoryStorage
return expression.Skip(offset).Take(size).Select(x => new MessageDto()
{
Added = x.Added,
Group = x.Group,
Version = "N/A",
Content = x.Content,
ExpiresAt = x.ExpiresAt,
Id = x.Id,
......@@ -137,7 +139,7 @@ namespace DotNetCore.CAP.InMemoryStorage
public int ReceivedSucceededCount()
{
return GetConnection().ReceivedMessages.Count(x => x.StatusName == StatusName.Succeeded);
}
}
private InMemoryStorageConnection GetConnection()
{
......
......@@ -86,7 +86,7 @@
<input type="checkbox" class="js-jobs-list-select-all"/>
</th>
<th>@Strings.Common_Id</th>
<th>@Strings.Common_Version</th>
<th style="width: 30px;">@Strings.Common_Version</th>
<th>@Strings.MessagesPage_Table_Group</th>
<th>@Strings.MessagesPage_Table_Name</th>
<th class="min-width">@Strings.MessagesPage_Table_Retries</th>
......@@ -94,7 +94,7 @@
{
<th>@Strings.MessagesPage_Table_State</th>
}
<th class="align-right">@Strings.MessagesPage_Table_ExpiresAt</th>
<th style="width: 75px;" class="align-right">@Strings.MessagesPage_Table_ExpiresAt</th>
</tr>
</thead>
<tbody>
......@@ -110,7 +110,7 @@
<td>
@message.Version
</td>
<td>
<td class="word-break">
@message.Group
</td>
<td>
......
......@@ -302,7 +302,7 @@ namespace DotNetCore.CAP.Dashboard.Pages
#line default
#line hidden
WriteLiteral("</th>\r\n <th>");
WriteLiteral("</th>\r\n <th style=\"width:50px;\">");
#line 88 "..\..\ReceivedPage.cshtml"
Write(Strings.Common_Version);
......@@ -371,7 +371,7 @@ namespace DotNetCore.CAP.Dashboard.Pages
#line default
#line hidden
WriteLiteral(" <th class=\"align-right\">");
WriteLiteral(" <th style=\"width:75px;\" class=\"align-right\">");
......@@ -438,7 +438,7 @@ namespace DotNetCore.CAP.Dashboard.Pages
#line default
#line hidden
WriteLiteral("\r\n </td>\r\n " +
"<td>\r\n ");
"<td class=\"word-break\">\r\n ");
#line 110 "..\..\ReceivedPage.cshtml"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment