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