mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-22 11:45:59 +01:00
alert for bulk import link
This commit is contained in:
parent
81dd1ff0f2
commit
5fef6837b7
@ -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' });
|
||||
}
|
||||
});
|
||||
};
|
||||
});
|
||||
|
@ -25,7 +25,7 @@
|
||||
<span class="text">bitwarden Android Vault</span>
|
||||
<span class="detail">Manage your logins from your mobile devices with the bitwarden Android vault.</span>
|
||||
</a>
|
||||
<a class="list-section-item wrap" href="" ng-click="launchWebVault()">
|
||||
<a class="list-section-item wrap" href="" ng-click="launchImport()">
|
||||
<span class="leading-icon" style="color: #6fc2ff;"><i class="fa fa-cloud-upload fa-fw"></i></span>
|
||||
<span class="text">Import Logins</span>
|
||||
<span class="detail">Quickly bulk import your logins from other password management applications.</span>
|
||||
|
@ -70,8 +70,7 @@ angular
|
||||
showCancelButton: true,
|
||||
confirmButtonText: 'Yes',
|
||||
cancelButtonText: 'No'
|
||||
},
|
||||
function (confirm) {
|
||||
}, function (confirm) {
|
||||
if (confirm) {
|
||||
goPasswordGenerator();
|
||||
}
|
||||
|
@ -104,10 +104,10 @@
|
||||
|
||||
.sa-icon.sa-info {
|
||||
border-color: @brand-info;
|
||||
}
|
||||
|
||||
.pulseInfoIns {
|
||||
background-color: @brand-info !important;
|
||||
&:before, &:after {
|
||||
background-color: @brand-info;
|
||||
}
|
||||
}
|
||||
|
||||
.sa-icon.sa-success {
|
||||
|
Loading…
Reference in New Issue
Block a user