summaryrefslogtreecommitdiff
path: root/src/SMAPI.Web/Views/LogParser
diff options
context:
space:
mode:
authordanvolchek <volchek2@illinois.edu>2018-11-13 00:37:09 -0600
committerdanvolchek <volchek2@illinois.edu>2018-11-13 00:37:09 -0600
commitf9b68e116aa066770c893955b185d459c42ddd34 (patch)
tree5f3919cacf1db88fbf833b07544b0680d79abf88 /src/SMAPI.Web/Views/LogParser
parent688ee69ee64e03aee7a693e6c15092daf229ac5e (diff)
downloadSMAPI-f9b68e116aa066770c893955b185d459c42ddd34.tar.gz
SMAPI-f9b68e116aa066770c893955b185d459c42ddd34.tar.bz2
SMAPI-f9b68e116aa066770c893955b185d459c42ddd34.zip
change log parser checkboxs and show/hide all buttons to be visible/invisible instead of shown/hidden
Diffstat (limited to 'src/SMAPI.Web/Views/LogParser')
-rw-r--r--src/SMAPI.Web/Views/LogParser/Index.cshtml6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/SMAPI.Web/Views/LogParser/Index.cshtml b/src/SMAPI.Web/Views/LogParser/Index.cshtml
index 36eb9bb5..58830d64 100644
--- a/src/SMAPI.Web/Views/LogParser/Index.cshtml
+++ b/src/SMAPI.Web/Views/LogParser/Index.cshtml
@@ -145,14 +145,14 @@ else if (Model.ParsedLog?.IsValid == true)
@if (!Model.ShowRaw)
{
<span class="notice txt"><i>click any mod to filter</i></span>
- <span class="notice btn txt" v-on:click="showAllMods" v-show="stats.modsHidden > 0">show all</span>
- <span class="notice btn txt" v-on:click="hideAllMods" v-show="stats.modsShown > 0 && stats.modsHidden > 0">hide all</span>
+ <span class="notice btn txt" v-on:click="showAllMods" v-bind:class="{ invisible: !anyModsHidden }">show all</span>
+ <span class="notice btn txt" v-on:click="hideAllMods" v-bind:class="{ invisible: !anyModsShown || !anyModsHidden }">hide all</span>
}
</caption>
@foreach (var mod in Model.ParsedLog.Mods.Where(p => p.ContentPackFor == null))
{
<tr v-on:click="toggleMod('@Model.GetSlug(mod.Name)')" class="mod-entry" v-bind:class="{ hidden: !showMods['@Model.GetSlug(mod.Name)'] }">
- <td><input type="checkbox" v-bind:checked="showMods['@Model.GetSlug(mod.Name)']" v-show="anyModsHidden" /></td>
+ <td><input type="checkbox" v-bind:checked="showMods['@Model.GetSlug(mod.Name)']" v-bind:class="{ invisible: !anyModsHidden }" /></td>
<td v-pre>
<strong>@mod.Name</strong> @mod.Version
@if (contentPacks != null && contentPacks.TryGetValue(mod.Name, out LogModInfo[] contentPackList))