1
0
mirror of https://github.com/chinchang/web-maker.git synced 2025-07-27 16:50:11 +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 window.oldSavedCreationsCountEl
) { ) {
fetchItems(false, true).then(items => { fetchItems(false, true).then(items => {
if (!items.length) {
return;
}
scope.oldSavedItems = items; scope.oldSavedItems = items;
window.oldSavedCreationsCountEl.textContent = items.length; window.oldSavedCreationsCountEl.textContent = items.length;
scope.toggleModal(askToImportModal); scope.toggleModal(askToImportModal);