This is the codeAbility Sharing Platform! Learn more about the
codeAbility Sharing Platform
.
Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
codeAbility Sharing Platform
Manage
Activity
Members
Labels
Plan
Issues
43
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
development
sharing
codeAbility Sharing Platform
Commits
15908b43
Commit
15908b43
authored
2 years ago
by
Michael Breu
Browse files
Options
Downloads
Patches
Plain Diff
Fixed Problems with footer Info
parent
5ca3cfa9
Branches
Branches containing commit
2 merge requests
!132
Bringing July Release to production
,
!128
Fixing #315 and #319
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/main/webapp/app/core/application/applicationInfo.service.ts
+11
-3
11 additions, 3 deletions
...in/webapp/app/core/application/applicationInfo.service.ts
src/main/webapp/app/layouts/footer/footer.component.ts
+3
-0
3 additions, 0 deletions
src/main/webapp/app/layouts/footer/footer.component.ts
with
14 additions
and
3 deletions
src/main/webapp/app/core/application/applicationInfo.service.ts
+
11
−
3
View file @
15908b43
import
{
Injectable
}
from
'
@angular/core
'
;
import
{
Injectable
}
from
'
@angular/core
'
;
import
{
HttpClient
}
from
'
@angular/common/http
'
;
import
{
HttpClient
}
from
'
@angular/common/http
'
;
import
{
Observable
}
from
'
rxjs
'
;
import
{
Observable
,
Subject
}
from
'
rxjs
'
;
import
{
ApplicationConfigService
}
from
'
app/core/config/application-config.service
'
;
import
{
ApplicationConfigService
}
from
'
app/core/config/application-config.service
'
;
...
@@ -11,8 +11,11 @@ export class DeploymentInfo {
...
@@ -11,8 +11,11 @@ export class DeploymentInfo {
}
}
@
Injectable
({
providedIn
:
'
root
'
})
@
Injectable
({
providedIn
:
'
root
'
})
export
class
ApplicationInfoService
{
export
class
ApplicationInfoService
{
cachedDeploymentInfo
:
DeploymentInfo
;
private
cachedDeploymentInfo
:
DeploymentInfo
;
inLoading
=
false
;
private
inLoading
=
false
;
private
deploymentInfoBroker
=
new
Subject
<
DeploymentInfo
>
();
constructor
(
private
http
:
HttpClient
,
private
applicationConfigService
:
ApplicationConfigService
)
{
constructor
(
private
http
:
HttpClient
,
private
applicationConfigService
:
ApplicationConfigService
)
{
this
.
cachedDeploymentInfo
=
{}
as
DeploymentInfo
;
this
.
cachedDeploymentInfo
=
{}
as
DeploymentInfo
;
}
}
...
@@ -27,11 +30,16 @@ export class ApplicationInfoService {
...
@@ -27,11 +30,16 @@ export class ApplicationInfoService {
this
.
loadDeploymentInfo
().
subscribe
(
res
=>
{
this
.
loadDeploymentInfo
().
subscribe
(
res
=>
{
this
.
cachedDeploymentInfo
=
res
;
this
.
cachedDeploymentInfo
=
res
;
this
.
inLoading
=
false
;
this
.
inLoading
=
false
;
this
.
deploymentInfoBroker
.
next
(
this
.
cachedDeploymentInfo
);
});
});
}
}
return
this
.
cachedDeploymentInfo
;
return
this
.
cachedDeploymentInfo
;
}
}
onDeploymentInfoChanged
():
Observable
<
DeploymentInfo
>
{
return
this
.
deploymentInfoBroker
;
}
private
loadDeploymentInfo
():
Observable
<
DeploymentInfo
>
{
private
loadDeploymentInfo
():
Observable
<
DeploymentInfo
>
{
return
this
.
http
.
get
<
DeploymentInfo
>
(
SERVER_API_URL
+
'
api/applicationInfo/deploymentInfo
'
);
return
this
.
http
.
get
<
DeploymentInfo
>
(
SERVER_API_URL
+
'
api/applicationInfo/deploymentInfo
'
);
}
}
...
...
This diff is collapsed.
Click to expand it.
src/main/webapp/app/layouts/footer/footer.component.ts
+
3
−
0
View file @
15908b43
...
@@ -10,6 +10,9 @@ export class FooterComponent implements OnInit {
...
@@ -10,6 +10,9 @@ export class FooterComponent implements OnInit {
constructor
(
public
applicationInfoService
:
ApplicationInfoService
)
{}
constructor
(
public
applicationInfoService
:
ApplicationInfoService
)
{}
ngOnInit
():
void
{
ngOnInit
():
void
{
this
.
applicationInfoService
.
onDeploymentInfoChanged
().
subscribe
(
depInfo
=>
{
this
.
deploymentInfo
=
depInfo
;}
)
this
.
deploymentInfo
=
this
.
applicationInfoService
.
getDeploymentInfo
();
this
.
deploymentInfo
=
this
.
applicationInfoService
.
getDeploymentInfo
();
}
}
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment