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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user