1
0
mirror of https://github.com/chinchang/web-maker.git synced 2025-07-26 00:11:13 +02:00

dont show asktoimport modal when no items in local machine

This commit is contained in:
Kushagra Gour
2018-03-15 11:41:35 +05:30
parent 968208e811
commit 1c0e143c1d

View File

@@ -2151,6 +2151,9 @@ loginModal, profileModal, profileAvatarImg, profileUserName, openItemsBtn, askTo
window.oldSavedCreationsCountEl
) {
fetchItems(false, true).then(items => {
if (!items.length) {
return;
}
scope.oldSavedItems = items;
window.oldSavedCreationsCountEl.textContent = items.length;
scope.toggleModal(askToImportModal);