mirror of
https://github.com/bitwarden/web
synced 2025-12-22 11:13:40 +00:00
cannot create item in collection.
set collection after share.
This commit is contained in:
@@ -141,6 +141,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
var returnedCollectionIds = null;
|
||||
$scope.submitPromise = $q.all(attachmentSharePromises).then(function () {
|
||||
if (errorOnUpload) {
|
||||
return;
|
||||
@@ -159,11 +160,15 @@
|
||||
}
|
||||
}
|
||||
|
||||
returnedCollectionIds = request.collectionIds;
|
||||
return apiService.ciphers.putShare({ id: cipherId }, request).$promise;
|
||||
}).then(function (response) {
|
||||
$analytics.eventTrack('Shared Cipher');
|
||||
toastr.success('Item has been shared.');
|
||||
$uibModalInstance.close(model.organizationId);
|
||||
$uibModalInstance.close({
|
||||
orgId: model.organizationId,
|
||||
collectionIds: returnedCollectionIds
|
||||
});
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user