diff --git a/src/app/settings/settings.component.html b/src/app/settings/settings.component.html index 2bd2524..bfd676e 100644 --- a/src/app/settings/settings.component.html +++ b/src/app/settings/settings.component.html @@ -77,69 +77,88 @@ -
-
-
-

- - {{ linkMsg }} - -

+
+ +
+
+ + Account Code + + +
+
+
+

+ + {{ linkMsg }} + +

- - - - - - - - - - - - -
Payment Service URL: -
-
- -
- -
- - - - -
+ + + + + + + + + + + +
Payment Service URL: +
+
+ +
+
+ + + + +
+
+
+
diff --git a/src/app/settings/settings.component.ts b/src/app/settings/settings.component.ts index cc016c6..80341c0 100644 --- a/src/app/settings/settings.component.ts +++ b/src/app/settings/settings.component.ts @@ -28,6 +28,8 @@ export class SettingsComponent implements OnInit { proVersion: boolean = false; useVKey: boolean = false; linkMsg: String = 'Link to Xero'; + xeroAccCod: String = ''; + saveAccOk: boolean = false; coins = [ { @@ -103,6 +105,14 @@ export class SettingsComponent implements OnInit { } close() { + + this.dialogRef.close(); + } + + closeIntegration() { + if ( this.xeroAccCod == '' ) + this.notifierService + .showNotification("Warning: Payment confirmation disabled","Close",'success'); this.dialogRef.close(); } @@ -137,6 +147,10 @@ export class SettingsComponent implements OnInit { } + saveAccCod() { + + } + copyUrl() { // console.log("Inside copyUrl()"); if (navigator.clipboard) { @@ -152,6 +166,12 @@ export class SettingsComponent implements OnInit { .showNotification("Functionality not available for your browser. Use send button instead.","Close",'error'); } } + + xeroAccCodChanged( arg: any ) { +// console.log("Account Code changed: " + arg.target.value); +// console.log(arg); + this.saveAccOk = (arg.target.value !== ''); + } }