Added item-group-completed style

This commit is contained in:
Rick Falkvinge
2020-01-02 13:05:23 +01:00
parent 861e76addc
commit de3a3bba2e
2 changed files with 10 additions and 1 deletions
+3 -1
View File
@@ -227,11 +227,13 @@ namespace Swarmops.Frontend.Pages.Ledgers
}
bool groupReady = true;
string groupReadyClass = " item-group-completed";
foreach (EomItem item in group.Items)
{
if (!item.Completed)
{
groupReady = false;
groupReadyClass = string.Empty;
}
}
@@ -240,7 +242,7 @@ namespace Swarmops.Frontend.Pages.Ledgers
builder.Append(@"
$('#TableEomItems').datagrid('appendRow', {
itemGroupName: ""<span class='item-group-header'" + previousGroupIdData + @">" +
itemGroupName: ""<span class='item-group-header" + groupReadyClass + "'" + previousGroupIdData + @">" +
group.Header.Replace(" ", "&nbsp;") + @"</span>"",
action: ""<img src='/Images/Icons/iconshock-green-tick-128x96px.png' data-group='" +
group.Id + "'" + previousGroupIdData +
+7
View File
@@ -916,6 +916,13 @@ input.data-entry-error, span.data-entry-error, div.data-entry-error {
font-weight: 500;
}
.item-group-completed, .item-group-denied {
-webkit-transition: all 0.50s;
transition: all 0.50s;
color: #aaa;
text-decoration: line-through;
}
.action-icon {
-webkit-transition: all 0.50s;
transition: all 0.50s;