Correct wallet link for invoices
This commit is contained in:
parent
e33e0a7f36
commit
e671967ba8
3 changed files with 4 additions and 4 deletions
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -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: () => {
|
||||
|
|
Loading…
Reference in a new issue