Correct wallet link for invoices

This commit is contained in:
Rene Vergara 2023-06-26 14:54:52 -05:00
parent e33e0a7f36
commit e671967ba8
Signed by: pitmutt
GPG Key ID: 65122AD495A7F5B2
3 changed files with 4 additions and 4 deletions

View File

@ -30,7 +30,7 @@ export class InvoiceComponent implements OnInit {
public nameUpdate: Observable<string>;
name: string = '';
error: boolean = false;
codeString: string = 'Test';
codeString: string = '';
invString: string = '';
public isWCOrder : boolean = false;
zcashUrl: SafeUrl = '';
@ -120,6 +120,7 @@ export class InvoiceComponent implements OnInit {
correctLevel: QRCode.CorrectLevel.H
});
this.error = false;
this.zcashUrl = this.sanitizer.bypassSecurityTrustUrl(this.codeString);
} else {
this.error = true;
this.codeString = 'Test';
@ -134,7 +135,6 @@ export class InvoiceComponent implements OnInit {
if ( order.session.substring(0,1) == 'W') {
this.isWCOrder = true;
}
this.zcashUrl = this.sanitizer.bypassSecurityTrustUrl(this.codeString);
});
this.nameUpdate.subscribe(name => {
this.name = name;

View File

@ -224,7 +224,7 @@ export class SettingsComponent implements OnInit {
this.owner.zats = this.settingsForm.value.useZats;
this.owner.payconf = this.settingsForm.value.useVKey;
this.owner.viewkey = this.settingsForm.value.vKey;
console.log('Settings component key: ' + this.owner.viewkey);
//console.log('Settings component key: ' + this.owner.viewkey);
this.dialogRef.close(this.owner);
}

View File

@ -162,7 +162,7 @@ export class UserService{
}
saveOwnerSettings(o: Owner) {
console.log('saveOwnerSettings: ' + o.viewkey);
//console.log('saveOwnerSettings: ' + o.viewkey);
if(o.viewkey.length > 20) {
this.saveOwnerViewingKey(o.viewkey).subscribe({
next: () => {