Added missing attachments conditional (#1145)

This commit is contained in:
Vincent Salucci 2020-02-19 14:00:37 -06:00 committed by GitHub
parent 23acc1bfb3
commit 7d93ebe732
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -251,7 +251,7 @@
<input id="favorite" type="checkbox" name="Favorite" [(ngModel)]="cipher.favorite">
</div>
<a class="box-content-row box-content-row-flex text-default" href="#" appStopClick appBlurClick
(click)="attachments()" *ngIf="editMode && showAttachments">
(click)="attachments()" *ngIf="editMode && showAttachments && !cloneMode">
<div class="row-main">{{'attachments' | i18n}}</div>
<i class="fa fa-chevron-right row-sub-icon" aria-hidden="true"></i>
</a>
@ -376,4 +376,4 @@
</div>
</div>
</content>
</form>
</form>

View File

@ -64,7 +64,7 @@ export class AddEditComponent extends BaseAddEditComponent {
}
await this.load();
if (!this.editMode) {
if (!this.editMode || this.cloneMode) {
if (params.name && (this.cipher.name == null || this.cipher.name === '')) {
this.cipher.name = params.name;
}