Display Fineract version and build (#1848)
Co-authored-by: Jose Alberto Hernandez <alberto@blue-daemon.local>
This commit is contained in:
co-authored by
Jose Alberto Hernandez
parent
653473bf8a
commit
c53870e540
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user