Settings component uptdated for compatibility with Android devices
This commit is contained in:
parent
e4eeacf2cd
commit
dcaec846c9
4 changed files with 14 additions and 3 deletions
|
@ -11,6 +11,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
||||||
- Added new service for Xero integration
|
- Added new service for Xero integration
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
|
|
||||||
|
- Settings component updated for compatibility with Android devices
|
||||||
- settings component updated to use observable when saving Account Code
|
- settings component updated to use observable when saving Account Code
|
||||||
- xeroService's saveAccountCode function optimized to export observable
|
- xeroService's saveAccountCode function optimized to export observable
|
||||||
- Field for Xero's AccountCode added to Settings component's integration tab
|
- Field for Xero's AccountCode added to Settings component's integration tab
|
||||||
|
|
|
@ -124,7 +124,7 @@ public order: Order = {
|
||||||
var auth = 'Basic ' + Buffer.from(ConfigData.UsrPwd).toString('base64');
|
var auth = 'Basic ' + Buffer.from(ConfigData.UsrPwd).toString('base64');
|
||||||
this.reqHeaders = new HttpHeaders().set('Authorization', auth);
|
this.reqHeaders = new HttpHeaders().set('Authorization', auth);
|
||||||
this.activatedRoute.queryParams.subscribe((params) => {
|
this.activatedRoute.queryParams.subscribe((params) => {
|
||||||
this.pmtData.ownerId = params["ownerid"];
|
this.pmtData.ownerId = params["owner"];
|
||||||
this.pmtData.invoice = params["invoiceNo"];
|
this.pmtData.invoice = params["invoiceNo"];
|
||||||
this.pmtData.amount = params["amount"];
|
this.pmtData.amount = params["amount"];
|
||||||
this.pmtData.currency = params["currency"];
|
this.pmtData.currency = params["currency"];
|
||||||
|
|
|
@ -142,7 +142,10 @@
|
||||||
width="100%"
|
width="100%"
|
||||||
placeholder="9999999999"
|
placeholder="9999999999"
|
||||||
formControlName="xAcc"
|
formControlName="xAcc"
|
||||||
|
(keyup)="checkStatus($event)">
|
||||||
|
<!--
|
||||||
(change)="xeroAccCodChanged($event)">
|
(change)="xeroAccCodChanged($event)">
|
||||||
|
-->
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -207,10 +207,16 @@ export class SettingsComponent implements OnInit {
|
||||||
.showNotification("Invalid Account code (10 chars max.)","Close",'error');
|
.showNotification("Invalid Account code (10 chars max.)","Close",'error');
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
/*
|
||||||
xeroAccCodChanged( arg: any ) {
|
xeroAccCodChanged( arg: any ) {
|
||||||
// console.log("Account Code changed: " + arg.target.value);
|
console.log("Account Code changed: " + arg.target.value);
|
||||||
// console.log(arg);
|
// console.log(arg);
|
||||||
this.saveAccOk = (arg.target.value != this.xeroAccCod );
|
this.saveAccOk = (arg.target.value != this.xeroAccCod );
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
checkStatus( arg : any ) {
|
||||||
|
console.log('onChange - checkStatus');
|
||||||
|
console.log(arg.target.value);
|
||||||
|
this.saveAccOk = (arg.target.value != this.xeroAccCod );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue