Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
PSManagementUI
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hasan.bahjat
PSManagementUI
Commits
f15b49b8
Commit
f15b49b8
authored
Sep 02, 2024
by
hasan khaddour
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix side bar
parent
10a2b8dd
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
header.component.ts
src/app/shared/sharedLayout/header/header.component.ts
+4
-2
layout.component.html
src/app/shared/sharedLayout/layout/layout.component.html
+3
-1
No files found.
src/app/shared/sharedLayout/header/header.component.ts
View file @
f15b49b8
import
{
CommonModule
}
from
'@angular/common'
;
import
{
CommonModule
}
from
'@angular/common'
;
import
{
HttpClient
}
from
'@angular/common/http'
;
import
{
HttpClient
}
from
'@angular/common/http'
;
import
{
Component
,
Input
,
input
,
OnIni
t
}
from
'@angular/core'
;
import
{
Component
,
EventEmitter
,
Input
,
input
,
OnInit
,
Outpu
t
}
from
'@angular/core'
;
import
{
Router
,
RouterLink
}
from
'@angular/router'
;
import
{
Router
,
RouterLink
}
from
'@angular/router'
;
import
{
UserService
}
from
'../../../core/services/authentication/user.service'
;
import
{
UserService
}
from
'../../../core/services/authentication/user.service'
;
import
{
ToastrService
}
from
'ngx-toastr'
;
import
{
ToastrService
}
from
'ngx-toastr'
;
...
@@ -16,7 +16,7 @@ import { ConfigurationService } from '../../../core/services/configuration/confi
...
@@ -16,7 +16,7 @@ import { ConfigurationService } from '../../../core/services/configuration/confi
export
class
HeaderComponent
implements
OnInit
{
export
class
HeaderComponent
implements
OnInit
{
@
Input
()
isToggled
:
Boolean
;
@
Input
()
isToggled
:
Boolean
;
@
Output
()
toggled
=
new
EventEmitter
<
Boolean
>
()
appName
=
ConfigurationService
.
AppName
appName
=
ConfigurationService
.
AppName
fullName
:
string
fullName
:
string
email
:
string
email
:
string
...
@@ -34,8 +34,10 @@ export class HeaderComponent implements OnInit {
...
@@ -34,8 +34,10 @@ export class HeaderComponent implements OnInit {
}
}
toggleSidebar
()
{
toggleSidebar
()
{
console
.
log
(
this
.
isToggled
)
console
.
log
(
this
.
isToggled
)
this
.
isToggled
=
!
this
.
isToggled
;
this
.
isToggled
=
!
this
.
isToggled
;
this
.
toggled
.
emit
(
this
.
isToggled
);
}
}
logout
()
{
logout
()
{
...
...
src/app/shared/sharedLayout/layout/layout.component.html
View file @
f15b49b8
<div>
<div>
<app-header
[
isToggled
]="
isToggled
"
></app-header>
<app-header
(
toggled
)="
toggleSidebar
()"
[
isToggled
]="
isToggled
"
></app-header>
<div
id=
"main"
class=
"main"
>
<div
id=
"main"
class=
"main"
>
<router-outlet></router-outlet>
<router-outlet></router-outlet>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment