Add new interest pause and list existing interest pause periods of the loan

This commit is contained in:
Jose Alberto Hernandez
2025-01-06 14:55:44 -05:00
committed by Jose Alberto Hernandez
parent a6455212fd
commit d04890fd3f
37 changed files with 400 additions and 122 deletions
@@ -1,5 +1,5 @@
<span (mouseenter)="mouseEnter()" (mouseleave)="mouseLeave()" *ngIf="!emptyValue">
<span class="m-l-3" *ngIf="isLongValue()"><fa-icon icon="eye" size="sm" [title]="textValue"></fa-icon></span>
<span class="m-l-5" *ngIf="isLongValue()">{{ textValue | truncateText: chars }}...</span>
<span class="m-l-5" *ngIf="!isLongValue()">{{ textValue }}</span>
<span class="m-l-3" *ngIf="isLongValue()" (click)="showValue()"><fa-icon icon="eye" size="sm" [title]="textValue"></fa-icon></span>
<span class="m-l-5" *ngIf="isLongValue()" (click)="showValue()">{{ textValue | truncateText: printChars }}...</span>
<span class="m-l-5" *ngIf="!isLongValue()" (click)="showValue()">{{ textValue }}</span>
</span>
@@ -14,10 +14,13 @@ export class LongTextComponent implements OnInit {
displayR = true;
emptyValue = false;
printChars = 30;
constructor() { }
ngOnInit(): void {
this.emptyValue = (!this.textValue || this.textValue === '');
this.printChars = this.chars;
}
isLongValue(): boolean {
@@ -27,6 +30,14 @@ export class LongTextComponent implements OnInit {
return (this.textValue.length > 25);
}
showValue() {
if (this.printChars == 30) {
this.printChars = 1000;
} else {
this.printChars = 30;
}
}
mouseEnter() {
this.iconVisible = true;
}