More chaanges in settings component

This commit is contained in:
Rene V. Vergara A. 2022-09-08 11:35:55 -05:00
parent e9eda2d30c
commit e4eeacf2cd
2 changed files with 4 additions and 2 deletions

View file

@ -134,7 +134,9 @@
<div style="height: 10px; <div style="height: 10px;
margin-top: 10px;"> margin-top: 10px;">
</div> </div>
<mat-form-field class="settings-field" [style.width.%]="100"> <mat-form-field *ngIf="linked2Xero"
class="settings-field"
[style.width.%]="100">
<mat-label>Account Code</mat-label> <mat-label>Account Code</mat-label>
<input matInput <input matInput
width="100%" width="100%"

View file

@ -126,7 +126,7 @@ export class SettingsComponent implements OnInit {
} }
closeIntegration() { closeIntegration() {
if ( this.xeroAccCod == '' ) if ( (this.xeroAccCod == '') && (this.linked2Xero) )
this.notifierService this.notifierService
.showNotification("Payment confirmation disabled!!","Close",'warning'); .showNotification("Payment confirmation disabled!!","Close",'warning');
this.dialogRef.close(); this.dialogRef.close();