1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-09-27 04:03:00 +02:00

nothing was imported error

This commit is contained in:
Kyle Spearrin 2016-10-17 23:24:16 -04:00
parent 517ea65bc9
commit 21e9e083f5

View File

@ -12,6 +12,11 @@
};
function importSuccess(folders, sites, folderRelationships) {
if (!folder.length && !sites.length) {
toastr.error('Nothing was imported.');
return;
}
apiService.ciphers.import({
folders: cipherService.encryptFolders(folders, cryptoService.getKey()),
sites: cipherService.encryptSites(sites, cryptoService.getKey()),