1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-16 08:13:42 +00:00

share adjustments

This commit is contained in:
Kyle Spearrin
2018-10-23 15:41:55 -04:00
parent 80e71d4923
commit aab709dd0b
3 changed files with 6 additions and 1 deletions

View File

@@ -86,12 +86,14 @@ export class AddEditComponent extends BaseAddEditComponent {
}
share() {
super.share();
if (this.cipher.organizationId == null) {
this.router.navigate(['/share-cipher'], { queryParams: { cipherId: this.cipher.id } });
}
}
editCollections() {
super.editCollections();
if (this.cipher.organizationId != null) {
this.router.navigate(['/collections'], { queryParams: { cipherId: this.cipher.id } });
}