Add SHOWDONE to settings.

This commit is contained in:
kor 2018-10-31 11:19:49 +13:00
parent cfa64acd6a
commit ae855de9b2
2 changed files with 14 additions and 10 deletions

View File

@ -16,6 +16,7 @@ const SETTINGS =
SHOWNOTE: true,
SHOWQOTE: true,
SHOWTERM: true,
SHOWDONE: false,
SHOWPROG: true,
SHOWIMAG: true,
SHOWFILE: true,

View File

@ -291,6 +291,8 @@ function View()
menuContent += `</div>`;
// DONE
if (SETTINGS.SHOWDONE)
{
menuContent += `<div class="menu-itemgroup">`;
menuContent += `<a href='#done-true' class="menu-item">`;
menuContent += `<div class="menu-itemcount">${value.done}</div>`;
@ -301,6 +303,7 @@ function View()
menuContent += `<i class="menu-itemicon fas fa-times"></i>`;
menuContent += `</a>`;
menuContent += `</div>`;
}
menuContent += `<div class="menu-itemgroup">`;
for (let ty = 0; ty < Math.min(value.types.length, SETTINGS.STATSNUMTYPE); ty++)