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

@ -551,6 +551,9 @@
"shareItem": {
"message": "Share Item"
},
"share": {
"message": "Share"
},
"sharedItem": {
"message": "Shared Item"
},

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 } });
}

View File

@ -4,7 +4,7 @@
<button type="button" appBlurClick (click)="cancel()">{{'cancel' | i18n}}</button>
</div>
<div class="center">
<span class="title">{{'shareItem' | i18n}}</span>
<span class="title">{{'share' | i18n}}</span>
</div>
<div class="right">
<button type="submit" appBlurClick [disabled]="form.loading || !canSave"