1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-17 08:43:33 +00:00

tools share link to web vault

This commit is contained in:
Kyle Spearrin
2017-04-25 16:25:40 -04:00
parent 154427a0f3
commit e411170a90
4 changed files with 19 additions and 3 deletions

View File

@@ -678,5 +678,13 @@
"shared": { "shared": {
"message": "Shared", "message": "Shared",
"desription": "Shared" "desription": "Shared"
},
"shareVault": {
"message": "Share Your Vault",
"desription": "Share Your Vault"
},
"shareVaultInfo": {
"message": "Create an organization to securely share your logins with other users.",
"desription": "Create an organization to securely share your logins with other users."
} }
} }

View File

@@ -3,8 +3,8 @@
.controller('toolsController', function ($scope, SweetAlert, i18nService) { .controller('toolsController', function ($scope, SweetAlert, i18nService) {
$scope.i18n = i18nService; $scope.i18n = i18nService;
$scope.launchWebVault = function () { $scope.launchWebVault = function (createOrg) {
chrome.tabs.create({ url: 'https://vault.bitwarden.com' }); chrome.tabs.create({ url: 'https://vault.bitwarden.com/#/' + (createOrg ? '?org=free' : '') });
}; };
$scope.launchiOS = function () { $scope.launchiOS = function () {

View File

@@ -25,6 +25,11 @@
<span class="text">{{i18n.bitAndrVault}}</span> <span class="text">{{i18n.bitAndrVault}}</span>
<span class="detail">{{i18n.bitAndrVaultInfo}}</span> <span class="detail">{{i18n.bitAndrVaultInfo}}</span>
</a> </a>
<a class="list-section-item wrap" href="" ng-click="launchWebVault(true)">
<span class="leading-icon" style="color: #8977af;"><i class="fa fa-share-alt fa-fw"></i></span>
<span class="text">{{i18n.shareVault}}</span>
<span class="detail">{{i18n.shareVaultInfo}}</span>
</a>
<a class="list-section-item wrap" href="" ng-click="launchImport()"> <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="leading-icon" style="color: #6fc2ff;"><i class="fa fa-cloud-upload fa-fw"></i></span>
<span class="text">{{i18n.importLogins}}</span> <span class="text">{{i18n.importLogins}}</span>

View File

@@ -32,7 +32,10 @@
data-clipboard-text="{{login.username}}" ng-class="{'disabled': !login.username}"> data-clipboard-text="{{login.username}}" ng-class="{'disabled': !login.username}">
<i class="fa fa-lg fa-user"></i> <i class="fa fa-lg fa-user"></i>
</span> </span>
<span class="text">{{login.name}}</span> <span class="text">
{{login.name}}
<i class="fa fa-share-alt text-muted" ng-if="login.organizationId" title="{{i18n.shared}}"></i>
</span>
<span class="detail">{{login.username}}</span> <span class="detail">{{login.username}}</span>
</a> </a>
</div> </div>