From 21e9e083f5a74116f9ef54c2efc7b971ba66cd79 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Mon, 17 Oct 2016 23:24:16 -0400 Subject: [PATCH] nothing was imported error --- src/Web/wwwroot/app/tools/toolsImportController.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Web/wwwroot/app/tools/toolsImportController.js b/src/Web/wwwroot/app/tools/toolsImportController.js index 574cc94afbb..6cdf5165257 100644 --- a/src/Web/wwwroot/app/tools/toolsImportController.js +++ b/src/Web/wwwroot/app/tools/toolsImportController.js @@ -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()),