Display Fineract version and build (#1848)

Co-authored-by: Jose Alberto Hernandez <alberto@blue-daemon.local>
This commit is contained in:
José Alberto Hernández
2023-08-24 00:06:17 -06:00
committed by GitHub
co-authored by Jose Alberto Hernandez
parent 653473bf8a
commit c53870e540
10 changed files with 213 additions and 13 deletions
+5 -3
View File
@@ -67,10 +67,10 @@ export class FooterComponent implements OnInit, OnDestroy {
this.getConfigurations();
this.server = this.settingsService.server;
this.versionService.getBackendInfo().subscribe((data: any) => {
const regExp = /0.0.0/gi;
const buildVersion: string = data.git.build.version;
this.versions.fineract = {
version: data.git.build.replace(regExp, data.git.closest.tag.name)
}
version: buildVersion.split('-')
};
});
}
@@ -92,6 +92,8 @@ export class FooterComponent implements OnInit, OnDestroy {
this.timer = setTimeout(() => { this.getConfigurations(); }, 60000);
}
});
} else {
clearTimeout(this.timer);
}
}