Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
anis-next
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
anis
anis-next
Commits
c50b8014
Commit
c50b8014
authored
2 years ago
by
François Agneray
Browse files
Options
Downloads
Patches
Plain Diff
#Fixed bug: instance general background-color
parent
89cc9993
No related branches found
No related tags found
1 merge request
!73
Develop
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
client/src/app/instance/instance.component.ts
+2
-0
2 additions, 0 deletions
client/src/app/instance/instance.component.ts
client/src/app/portal/containers/portal-home.component.ts
+2
-0
2 additions, 0 deletions
client/src/app/portal/containers/portal-home.component.ts
with
4 additions
and
0 deletions
client/src/app/instance/instance.component.ts
+
2
−
0
View file @
c50b8014
...
@@ -42,6 +42,7 @@ import { InstanceStyleService } from './instance-style.service';
...
@@ -42,6 +42,7 @@ import { InstanceStyleService } from './instance-style.service';
})
})
export
class
InstanceComponent
implements
OnInit
,
OnDestroy
{
export
class
InstanceComponent
implements
OnInit
,
OnDestroy
{
public
favIcon
:
HTMLLinkElement
=
document
.
querySelector
(
'
#favicon
'
);
public
favIcon
:
HTMLLinkElement
=
document
.
querySelector
(
'
#favicon
'
);
public
body
:
HTMLBodyElement
=
document
.
querySelector
(
'
body
'
);
public
instance
:
Observable
<
Instance
>
;
public
instance
:
Observable
<
Instance
>
;
public
isAuthenticated
:
Observable
<
boolean
>
;
public
isAuthenticated
:
Observable
<
boolean
>
;
public
userProfile
:
Observable
<
UserProfile
>
;
public
userProfile
:
Observable
<
UserProfile
>
;
...
@@ -91,6 +92,7 @@ export class InstanceComponent implements OnInit, OnDestroy {
...
@@ -91,6 +92,7 @@ export class InstanceComponent implements OnInit, OnDestroy {
this
.
setFaviconHref
(
instance
);
this
.
setFaviconHref
(
instance
);
}
}
if
(
document
.
styleSheets
.
length
>
0
)
{
if
(
document
.
styleSheets
.
length
>
0
)
{
this
.
body
.
style
.
backgroundColor
=
instance
.
design_background_color
;
this
.
style
.
applyInstanceStyle
(
instance
);
this
.
style
.
applyInstanceStyle
(
instance
);
}
}
}
}
...
...
This diff is collapsed.
Click to expand it.
client/src/app/portal/containers/portal-home.component.ts
+
2
−
0
View file @
c50b8014
...
@@ -34,6 +34,7 @@ import { StyleService } from 'src/app/shared/services/style.service';
...
@@ -34,6 +34,7 @@ import { StyleService } from 'src/app/shared/services/style.service';
})
})
export
class
PortalHomeComponent
implements
OnInit
{
export
class
PortalHomeComponent
implements
OnInit
{
public
favIcon
:
HTMLLinkElement
=
document
.
querySelector
(
'
#favicon
'
);
public
favIcon
:
HTMLLinkElement
=
document
.
querySelector
(
'
#favicon
'
);
public
body
:
HTMLBodyElement
=
document
.
querySelector
(
'
body
'
);
public
isAuthenticated
:
Observable
<
boolean
>
;
public
isAuthenticated
:
Observable
<
boolean
>
;
public
userProfile
:
Observable
<
UserProfile
>
;
public
userProfile
:
Observable
<
UserProfile
>
;
public
userRoles
:
Observable
<
string
[]
>
;
public
userRoles
:
Observable
<
string
[]
>
;
...
@@ -51,6 +52,7 @@ export class PortalHomeComponent implements OnInit {
...
@@ -51,6 +52,7 @@ export class PortalHomeComponent implements OnInit {
ngOnInit
()
{
ngOnInit
()
{
this
.
favIcon
.
href
=
'
favicon.ico
'
;
this
.
favIcon
.
href
=
'
favicon.ico
'
;
this
.
body
.
style
.
backgroundColor
=
'
white
'
;
this
.
style
.
setStyles
(
'
.footer
'
,
{
this
.
style
.
setStyles
(
'
.footer
'
,
{
'
background-color
'
:
'
#F8F9FA
'
,
'
background-color
'
:
'
#F8F9FA
'
,
'
border-top
'
:
'
none
'
,
'
border-top
'
:
'
none
'
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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