1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-16 08:13:42 +00:00

alert for bulk import link

This commit is contained in:
Kyle Spearrin
2016-09-20 00:03:39 -04:00
parent 81dd1ff0f2
commit 5fef6837b7
4 changed files with 21 additions and 7 deletions

View File

@@ -1,7 +1,7 @@
angular
.module('bit.tools')
.controller('toolsController', function ($scope) {
.controller('toolsController', function ($scope, SweetAlert) {
$scope.launchWebVault = function () {
chrome.tabs.create({ url: 'https://vault.bitwarden.com' });
};
@@ -13,4 +13,19 @@
$scope.launchAndroid = function () {
chrome.tabs.create({ url: 'https://play.google.com/store/apps/details?id=com.x8bit.bitwarden' });
};
$scope.launchImport = function () {
SweetAlert.swal({
title: 'Import Logins',
text: 'You can bulk import logins from the bitwarden.com web vault. Do you want to visit the website now?',
type: 'info',
showCancelButton: true,
confirmButtonText: 'Yes',
cancelButtonText: 'Cancel'
}, function (confirm) {
if (confirm) {
chrome.tabs.create({ url: 'https://vault.bitwarden.com' });
}
});
};
});