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>;
|
public nameUpdate: Observable<string>;
|
||||||
name: string = '';
|
name: string = '';
|
||||||
error: boolean = false;
|
error: boolean = false;
|
||||||
codeString: string = 'Test';
|
codeString: string = '';
|
||||||
invString: string = '';
|
invString: string = '';
|
||||||
public isWCOrder : boolean = false;
|
public isWCOrder : boolean = false;
|
||||||
zcashUrl: SafeUrl = '';
|
zcashUrl: SafeUrl = '';
|
||||||
|
@ -120,6 +120,7 @@ export class InvoiceComponent implements OnInit {
|
||||||
correctLevel: QRCode.CorrectLevel.H
|
correctLevel: QRCode.CorrectLevel.H
|
||||||
});
|
});
|
||||||
this.error = false;
|
this.error = false;
|
||||||
|
this.zcashUrl = this.sanitizer.bypassSecurityTrustUrl(this.codeString);
|
||||||
} else {
|
} else {
|
||||||
this.error = true;
|
this.error = true;
|
||||||
this.codeString = 'Test';
|
this.codeString = 'Test';
|
||||||
|
@ -134,7 +135,6 @@ export class InvoiceComponent implements OnInit {
|
||||||
if ( order.session.substring(0,1) == 'W') {
|
if ( order.session.substring(0,1) == 'W') {
|
||||||
this.isWCOrder = true;
|
this.isWCOrder = true;
|
||||||
}
|
}
|
||||||
this.zcashUrl = this.sanitizer.bypassSecurityTrustUrl(this.codeString);
|
|
||||||
});
|
});
|
||||||
this.nameUpdate.subscribe(name => {
|
this.nameUpdate.subscribe(name => {
|
||||||
this.name = name;
|
this.name = name;
|
||||||
|
|
|
@ -224,7 +224,7 @@ export class SettingsComponent implements OnInit {
|
||||||
this.owner.zats = this.settingsForm.value.useZats;
|
this.owner.zats = this.settingsForm.value.useZats;
|
||||||
this.owner.payconf = this.settingsForm.value.useVKey;
|
this.owner.payconf = this.settingsForm.value.useVKey;
|
||||||
this.owner.viewkey = this.settingsForm.value.vKey;
|
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);
|
this.dialogRef.close(this.owner);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -162,7 +162,7 @@ export class UserService{
|
||||||
}
|
}
|
||||||
|
|
||||||
saveOwnerSettings(o: Owner) {
|
saveOwnerSettings(o: Owner) {
|
||||||
console.log('saveOwnerSettings: ' + o.viewkey);
|
//console.log('saveOwnerSettings: ' + o.viewkey);
|
||||||
if(o.viewkey.length > 20) {
|
if(o.viewkey.length > 20) {
|
||||||
this.saveOwnerViewingKey(o.viewkey).subscribe({
|
this.saveOwnerViewingKey(o.viewkey).subscribe({
|
||||||
next: () => {
|
next: () => {
|
||||||
|
|
Loading…
Reference in a new issue