mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-27 12:36:14 +01:00
shared bugs
This commit is contained in:
parent
a083fc9084
commit
0be6249c2b
@ -127,10 +127,8 @@
|
||||
modal.result.then(function (response) {
|
||||
if (response.collectionIds) {
|
||||
login.collectionIds = response.collectionIds;
|
||||
|
||||
if (!response.collectionIds.length) {
|
||||
removeRootLogin(findRootLogin(login));
|
||||
}
|
||||
// TODO: if there are no collectionIds now, it is possible that the user no longer has access to this login
|
||||
// which means it should be removed by calling removeRootLogin(findRootLogin(login))
|
||||
}
|
||||
});
|
||||
};
|
||||
@ -154,9 +152,8 @@
|
||||
apiService.ciphers.putCollections({ id: login.id }, request).$promise.then(function (response) {
|
||||
$analytics.eventTrack('Removed From Collection');
|
||||
login.collectionIds = request.collectionIds;
|
||||
if (!login.collectionIds.length) {
|
||||
removeRootLogin(findRootLogin(login));
|
||||
}
|
||||
// TODO: if there are no collectionIds now, it is possible that the user no longer has access to this login
|
||||
// which means it should be removed by calling removeRootLogin(findRootLogin(login))
|
||||
});
|
||||
};
|
||||
|
||||
|
@ -68,7 +68,8 @@
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="javascript:void(0)" ng-click="removeLogin(login, collection)" class="text-red">
|
||||
<a href="javascript:void(0)" ng-click="removeLogin(login, collection)"
|
||||
ng-if="collection.id" class="text-red">
|
||||
<i class="fa fa-fw fa-remove"></i> Remove
|
||||
</a>
|
||||
</li>
|
||||
|
Loading…
Reference in New Issue
Block a user