Add viewing key field to owner model
This commit is contained in:
parent
d7875ba445
commit
2535e23db6
11 changed files with 28 additions and 12 deletions
|
@ -4,7 +4,11 @@ All notable changes to this project will be documented in this file.
|
||||||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
- (20022-07-11) Order's list UI updated (Alpha version)
|
|
||||||
|
### Changed
|
||||||
|
|
||||||
|
- Added viewing key field to owner model
|
||||||
|
- (2022-07-11) Order's list UI updated (Alpha version)
|
||||||
+ Paid status icons added to order's title
|
+ Paid status icons added to order's title
|
||||||
+ Order detail redesigned
|
+ Order detail redesigned
|
||||||
Components affected:
|
Components affected:
|
||||||
|
@ -15,7 +19,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
||||||
|
|
||||||
## [1.1.2] - 2022-05-24
|
## [1.1.2] - 2022-05-24
|
||||||
|
|
||||||
## Added
|
### Added
|
||||||
|
|
||||||
- Button in QR code prompt to copy ZGo address.
|
- Button in QR code prompt to copy ZGo address.
|
||||||
- Button in QR code prompt to copy transaction amount.
|
- Button in QR code prompt to copy transaction amount.
|
||||||
|
|
|
@ -65,7 +65,8 @@ export class BusinessComponent implements OnInit {
|
||||||
website: '',
|
website: '',
|
||||||
zats: false,
|
zats: false,
|
||||||
invoices: false,
|
invoices: false,
|
||||||
expiration: new Date(Date.now()).toISOString()
|
expiration: new Date(Date.now()).toISOString(),
|
||||||
|
viewkey: ''
|
||||||
}
|
}
|
||||||
public countriesUpdate: Observable<Country[]>;
|
public countriesUpdate: Observable<Country[]>;
|
||||||
public ownerUpdate: Observable<Owner>;
|
public ownerUpdate: Observable<Owner>;
|
||||||
|
@ -127,6 +128,7 @@ export class BusinessComponent implements OnInit {
|
||||||
this.ownerUpdate.subscribe(ownerData => {
|
this.ownerUpdate.subscribe(ownerData => {
|
||||||
if(ownerData.name.length > 0 && this.stepper!.selectedIndex == 0){
|
if(ownerData.name.length > 0 && this.stepper!.selectedIndex == 0){
|
||||||
this.stepper!.next();
|
this.stepper!.next();
|
||||||
|
this.loginCheck();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -170,7 +172,8 @@ export class BusinessComponent implements OnInit {
|
||||||
website: this.bizForm.get('website')!.value,
|
website: this.bizForm.get('website')!.value,
|
||||||
zats: false,
|
zats: false,
|
||||||
invoices: false,
|
invoices: false,
|
||||||
expiration: new Date(Date.now()).toISOString()
|
expiration: new Date(Date.now()).toISOString(),
|
||||||
|
viewkey: ''
|
||||||
};
|
};
|
||||||
this.userService.addOwner(this.owner);
|
this.userService.addOwner(this.owner);
|
||||||
this.stepper!.next();
|
this.stepper!.next();
|
||||||
|
|
|
@ -44,7 +44,8 @@ export class FullnodeService{
|
||||||
country: '',
|
country: '',
|
||||||
zats: false,
|
zats: false,
|
||||||
invoices: false,
|
invoices: false,
|
||||||
expiration: new Date(Date.now()).toISOString()
|
expiration: new Date(Date.now()).toISOString(),
|
||||||
|
viewkey: ''
|
||||||
};
|
};
|
||||||
|
|
||||||
constructor(private http: HttpClient, public userService: UserService){
|
constructor(private http: HttpClient, public userService: UserService){
|
||||||
|
|
|
@ -39,7 +39,8 @@ export class HeaderComponent implements OnInit, OnDestroy {
|
||||||
country: '',
|
country: '',
|
||||||
zats: false,
|
zats: false,
|
||||||
invoices: false,
|
invoices: false,
|
||||||
expiration: new Date(Date.now()).toISOString()
|
expiration: new Date(Date.now()).toISOString(),
|
||||||
|
viewkey: ''
|
||||||
};
|
};
|
||||||
private session: string | null = '';
|
private session: string | null = '';
|
||||||
public heightUpdate: Observable<number>;
|
public heightUpdate: Observable<number>;
|
||||||
|
|
|
@ -42,7 +42,8 @@ export class ItemListComponent implements OnInit{
|
||||||
country: '',
|
country: '',
|
||||||
zats: false,
|
zats: false,
|
||||||
invoices: false,
|
invoices: false,
|
||||||
expiration: new Date(Date.now()).toISOString()
|
expiration: new Date(Date.now()).toISOString(),
|
||||||
|
viewkey: ''
|
||||||
};
|
};
|
||||||
public price: number = 1;
|
public price: number = 1;
|
||||||
public ownerUpdate: Observable<Owner>;
|
public ownerUpdate: Observable<Owner>;
|
||||||
|
|
|
@ -59,7 +59,8 @@ export class LoginComponent implements OnInit, AfterViewInit {
|
||||||
country: '',
|
country: '',
|
||||||
zats: false,
|
zats: false,
|
||||||
invoices: false,
|
invoices: false,
|
||||||
expiration: new Date(Date.now()).toISOString()
|
expiration: new Date(Date.now()).toISOString(),
|
||||||
|
viewkey: ''
|
||||||
};
|
};
|
||||||
private FullnodeSub: Subscription = new Subscription();
|
private FullnodeSub: Subscription = new Subscription();
|
||||||
private UserSub: Subscription = new Subscription();
|
private UserSub: Subscription = new Subscription();
|
||||||
|
|
|
@ -45,7 +45,8 @@ export class OrderService {
|
||||||
country: '',
|
country: '',
|
||||||
zats: false,
|
zats: false,
|
||||||
invoices: false,
|
invoices: false,
|
||||||
expiration: new Date(Date.now()).toISOString()
|
expiration: new Date(Date.now()).toISOString(),
|
||||||
|
viewkey: ''
|
||||||
},
|
},
|
||||||
order: {
|
order: {
|
||||||
address: '',
|
address: '',
|
||||||
|
|
|
@ -21,4 +21,5 @@ export interface Owner {
|
||||||
zats: boolean;
|
zats: boolean;
|
||||||
invoices: boolean;
|
invoices: boolean;
|
||||||
expiration: string;
|
expiration: string;
|
||||||
|
viewkey: string;
|
||||||
}
|
}
|
||||||
|
|
|
@ -35,7 +35,8 @@ export class ReceiptService {
|
||||||
country: '',
|
country: '',
|
||||||
zats: false,
|
zats: false,
|
||||||
invoices: false,
|
invoices: false,
|
||||||
expiration: new Date(Date.now()).toISOString()
|
expiration: new Date(Date.now()).toISOString(),
|
||||||
|
viewkey: ''
|
||||||
},
|
},
|
||||||
order: {
|
order: {
|
||||||
address: '',
|
address: '',
|
||||||
|
|
|
@ -41,7 +41,8 @@ export class UserService{
|
||||||
country: '',
|
country: '',
|
||||||
zats: false,
|
zats: false,
|
||||||
invoices: false,
|
invoices: false,
|
||||||
expiration: new Date(Date.now()).toISOString()
|
expiration: new Date(Date.now()).toISOString(),
|
||||||
|
viewkey: ''
|
||||||
},
|
},
|
||||||
txs : [],
|
txs : [],
|
||||||
countries: []
|
countries: []
|
||||||
|
|
|
@ -49,7 +49,8 @@ export class ViewerComponent implements OnInit {
|
||||||
country: '',
|
country: '',
|
||||||
zats: false,
|
zats: false,
|
||||||
invoices: false,
|
invoices: false,
|
||||||
expiration: new Date(Date.now()).toISOString()
|
expiration: new Date(Date.now()).toISOString(),
|
||||||
|
viewkey: ''
|
||||||
};
|
};
|
||||||
public addrUpdate: Observable<string>;
|
public addrUpdate: Observable<string>;
|
||||||
public ownerUpdate: Observable<Owner>;
|
public ownerUpdate: Observable<Owner>;
|
||||||
|
|
Loading…
Reference in a new issue