set org id when encrypting new
This commit is contained in:
parent
f089b5e3d1
commit
fda8155894
2
jslib
2
jslib
|
@ -1 +1 @@
|
||||||
Subproject commit 9b008ff382d1dd6682185cf092afbf02a83ce951
|
Subproject commit ef5eebba66d606d53cf4bc730426ea393276e801
|
|
@ -50,6 +50,13 @@ export class AddEditComponent extends BaseAddEditComponent implements OnInit {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected encryptCipher() {
|
||||||
|
if (!this.editMode) {
|
||||||
|
this.cipher.organizationId = this.organization.id;
|
||||||
|
}
|
||||||
|
return super.encryptCipher();
|
||||||
|
}
|
||||||
|
|
||||||
protected async saveCipher(cipher: Cipher) {
|
protected async saveCipher(cipher: Cipher) {
|
||||||
if (this.organization.isAdmin) {
|
if (this.organization.isAdmin) {
|
||||||
const request = new CipherRequest(cipher);
|
const request = new CipherRequest(cipher);
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
</td>
|
</td>
|
||||||
<td (click)="checkCipher(c)">
|
<td (click)="checkCipher(c)">
|
||||||
<a href="#" appStopClick appStopProp (click)="selectCipher(c)" title="{{'editItem' | i18n}}">{{c.name}}</a>
|
<a href="#" appStopClick appStopProp (click)="selectCipher(c)" title="{{'editItem' | i18n}}">{{c.name}}</a>
|
||||||
<i class="fa fa-share-alt" appStopProp *ngIf="c.organizationId" title="{{'shared' | i18n}}"></i>
|
<i class="fa fa-share-alt" appStopProp *ngIf="!organization && c.organizationId" title="{{'shared' | i18n}}"></i>
|
||||||
<i class="fa fa-paperclip" appStopProp *ngIf="c.hasAttachments" title="{{'attachments' | i18n}}"></i>
|
<i class="fa fa-paperclip" appStopProp *ngIf="c.hasAttachments" title="{{'attachments' | i18n}}"></i>
|
||||||
<br>
|
<br>
|
||||||
<small appStopProp>{{c.subTitle}}</small>
|
<small appStopProp>{{c.subTitle}}</small>
|
||||||
|
|
Loading…
Reference in New Issue