1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-17 16:53:34 +00:00

renaming logins to generic items

This commit is contained in:
Kyle Spearrin
2017-10-18 12:22:56 -04:00
parent f4e72aae8a
commit 170484ba11
13 changed files with 52 additions and 53 deletions

View File

@@ -22,7 +22,7 @@
<div class="list-section-items" ng-class="{'list-no-selection': !loginCiphers.length}">
<div class="list-section-item" ng-if="loaded && !loginCiphers.length">
<p>{{i18n.autoFillInfo}}</p>
<button ng-click="addCipher()" class="btn btn-link btn-block">{{i18n.addLogin}}</button>
<button ng-click="addCipher()" class="btn btn-link btn-block">{{i18n.addItem}}</button>
</div>
<cipher-items ng-if="loginCiphers.length" ciphers="loginCiphers" on-view="viewCipher"
on-selected="fillCipher" selection-title="i18n.autoFill"></cipher-items>

View File

@@ -21,8 +21,8 @@
$scope.launchImport = function () {
SweetAlert.swal({
title: i18nService.importLogins,
text: i18nService.importLoginsConfirmation,
title: i18nService.importItems,
text: i18nService.importItemsConfirmation,
showCancelButton: true,
confirmButtonText: i18nService.yes,
cancelButtonText: i18nService.cancel

View File

@@ -35,8 +35,8 @@
</a>
<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">{{i18n.importLogins}}</span>
<span class="detail">{{i18n.importLoginsInfo}}</span>
<span class="text">{{i18n.importItems}}</span>
<span class="detail">{{i18n.importItemsInfo}}</span>
</a>
<a class="list-section-item wrap" ui-sref="export({animation: 'in-slide-up'})" ng-if="showExport">
<span class="leading-icon" style="color: #ff6f6f;"><i class="fa fa-cloud-download fa-fw"></i></span>

View File

@@ -56,7 +56,7 @@
return cipherService.saveWithServer(cipher);
}).then(function (c) {
$analytics.eventTrack('Added Cipher');
toastr.success(i18nService.addedLogin);
toastr.success(i18nService.addedItem);
$scope.close();
});
};

View File

@@ -113,7 +113,7 @@ angular
};
$scope.close = function () {
$state.go('editLogin', {
$state.go('editCipher', {
loginId: $stateParams.id,
animation: 'out-slide-down',
from: $stateParams.from,

View File

@@ -50,7 +50,7 @@ angular
var cipher = new Cipher(cipherModel, true);
return cipherService.saveWithServer(cipher).then(function (c) {
$analytics.eventTrack('Edited Cipher');
toastr.success(i18nService.editedLogin);
toastr.success(i18nService.editedItem);
$scope.close();
});
});
@@ -58,8 +58,8 @@ angular
$scope.delete = function () {
SweetAlert.swal({
title: i18nService.deleteLogin,
text: i18nService.deleteLoginConfirmation,
title: i18nService.deleteItem,
text: i18nService.deleteItemConfirmation,
showCancelButton: true,
confirmButtonText: i18nService.yes,
cancelButtonText: i18nService.no
@@ -67,7 +67,7 @@ angular
if (confirmed) {
cipherService.deleteWithServer(cipherId).then(function () {
$analytics.eventTrack('Deleted Cipher');
toastr.success(i18nService.deletedLogin);
toastr.success(i18nService.deletedItem);
$state.go('tabs.vault', {
animation: 'out-slide-down'
});

View File

@@ -151,7 +151,7 @@
$scope.addCipher = function () {
storeState();
$state.go('addLogin', {
$state.go('addCipher', {
animation: 'in-slide-up',
from: 'folder',
folderId: $scope.folder.id
@@ -175,7 +175,7 @@
}
storeState();
$state.go('viewLogin', {
$state.go('viewCipher', {
cipherId: cipher.id,
animation: 'in-slide-up',
from: 'folder'

View File

@@ -76,7 +76,7 @@
<div class="centered-message" ng-if="loaded && !vaultCiphers.length">
<p>
{{i18n.noItemsInList}}
<button ng-click="addCipher()" style="margin-top: 20px;" class="btn btn-link btn-block">{{::i18n.addLogin}}</button>
<button ng-click="addCipher()" style="margin-top: 20px;" class="btn btn-link btn-block">{{::i18n.addItem}}</button>
</p>
</div>
<div class="page-loading" ng-if="!loaded">

View File

@@ -7,13 +7,13 @@
<button type="submit" class="btn btn-link" ng-show="!theForm.$loading">{{i18n.save}}</button>
<i class="fa fa-spinner fa-lg" ng-show="theForm.$loading" ng-class="{'fa-spin' : theForm.$loading}"></i>
</div>
<div class="title">{{i18n.addLogin}}</div>
<div class="title">{{i18n.addItem}}</div>
</div>
<div class="content">
<div class="list">
<div class="list-section">
<div class="list-section-header">
{{i18n.loginInformation}}
{{i18n.itemInformation}}
</div>
<div class="list-section-items">
<div class="list-section-item">

View File

@@ -7,13 +7,13 @@
<button type="submit" class="btn btn-link" ng-show="!theForm.$loading">{{i18n.save}}</button>
<i class="fa fa-spinner fa-lg" ng-show="theForm.$loading" ng-class="{'fa-spin' : theForm.$loading}"></i>
</div>
<div class="title">{{i18n.editLogin}}</div>
<div class="title">{{i18n.editItem}}</div>
</div>
<div class="content">
<div class="list">
<div class="list-section">
<div class="list-section-header">
{{i18n.loginInformation}}
{{i18n.itemInformation}}
<i class="fa fa-share-alt fa-lg pull-right" ng-if="cipher.organizationId" title="{{i18n.shared}}"></i>
</div>
<div class="list-section-items">
@@ -262,7 +262,7 @@
<div class="list-section">
<div class="list-section-items">
<a href="" ng-click="delete()" class="list-section-item text-danger">
<i class="fa fa-trash fa-fw fa-lg"></i> {{i18n.deleteLogin}}
<i class="fa fa-trash fa-fw fa-lg"></i> {{i18n.deleteItem}}
</a>
</div>
</div>

View File

@@ -5,13 +5,13 @@
<div class="right">
<a href="" ng-click="edit(cipher)">{{i18n.edit}}</a>
</div>
<div class="title">{{i18n.viewLogin}}</div>
<div class="title">{{i18n.viewItem}}</div>
</div>
<div class="content">
<div class="list list-no-selection">
<div class="list-section">
<div class="list-section-header">
{{i18n.loginInformation}}
{{i18n.itemInformation}}
<i class="fa fa-share-alt fa-lg pull-right" ng-if="cipher.organizationId" title="{{i18n.shared}}"></i>
</div>
<div class="list-section-items">

View File

@@ -37,7 +37,7 @@
<div class="centered-message" ng-if="loaded && !vaultCiphers.length">
<p>
{{i18n.noItemsInList}}
<button ng-click="addCipher()" style="margin-top: 20px;" class="btn btn-link btn-block">{{i18n.addLogin}}</button>
<button ng-click="addCipher()" style="margin-top: 20px;" class="btn btn-link btn-block">{{i18n.addItem}}</button>
</p>
</div>
<div class="page-loading" ng-if="!loaded">