1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-18 09:13:33 +00:00

attachment errors

This commit is contained in:
Kyle Spearrin
2017-07-05 16:27:28 -04:00
parent b24f892f60
commit 1fb220c25e
3 changed files with 18 additions and 8 deletions

View File

@@ -2,7 +2,7 @@
.module('bit.vault')
.controller('vaultAttachmentsController', function ($scope, apiService, $uibModalInstance, cryptoService, cipherService,
loginId, $analytics, validationService) {
loginId, $analytics, validationService, toastr) {
$analytics.eventTrack('vaultAttachmentsController', { category: 'Modal' });
$scope.login = {};
$scope.readOnly = false;
@@ -45,6 +45,7 @@
return apiService.ciphers.postAttachment({ id: loginId }, fd).$promise;
}).then(function (response) {
$analytics.eventTrack('Added Attachment');
toastr.success('The attachment has been added.');
$uibModalInstance.close({
action: 'attach',
data: $scope.login