1
0
mirror of https://github.com/chinchang/web-maker.git synced 2025-05-15 14:55:20 +02:00

show saved item count

This commit is contained in:
Kushagra Gour 2017-03-12 01:11:35 +05:30
parent 6f06b7e950
commit e724ed868c
2 changed files with 4 additions and 1 deletions

View File

@ -471,7 +471,7 @@
<button class="btn saved-items-pane__close-btn" id="js-saved-items-pane-close-btn">X</button>
<div class="flex flex-v-center" style="justify-content: space-between;">
<h3>My Library</h3>
<h3>My Library <span id="savedItemCount"></span></h3>
<div class="main-header__btn-wrap">
<a d-click="exportItems" href="" class="btn btn-icon">Export
</a>

View File

@ -311,8 +311,11 @@ onboardDontShowInTabOptionBtn, TextareaAutoComplete */
+ '<a class="js-saved-item-tile__close-btn saved-item-tile__close-btn hint--left" aria-label="Remove">X</a>'
+ '<h3 class="saved-item-tile__title">' + item.title + '</h3><span class="saved-item-tile__meta">Last updated: ' + utils.getHumanDate(item.updatedOn) + '</span></div>';
});
savedItemCount.textContent = '(' + items.length + ')';
savedItemCount.style.display = 'inline';
} else {
html += '<h2 class="opacity--30">Nothing saved here.</h2>';
savedItemCount.style.display = 'none';
}
savedItemsPane.querySelector('#js-saved-items-wrap').innerHTML = html;
toggleSavedItemsPane();