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": { "shareItem": {
"message": "Share Item" "message": "Share Item"
}, },
"share": {
"message": "Share"
},
"sharedItem": { "sharedItem": {
"message": "Shared Item" "message": "Shared Item"
}, },

View File

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

View File

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