Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
H
HIAST-Clinics
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
almohanad.hafez
HIAST-Clinics
Commits
a34155c2
Commit
a34155c2
authored
Aug 24, 2024
by
Almouhannad
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(F) Add scolling behavoir when login
parent
cf59987b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
3 deletions
+11
-3
home.component.html
...ontend/src/app/components/shared/home/home.component.html
+2
-2
header.component.ts
...app/components/shared/template/header/header.component.ts
+9
-1
No files found.
Clinics.Frontend/src/app/components/shared/home/home.component.html
View file @
a34155c2
...
...
@@ -62,7 +62,7 @@
<section
id=
"doctors"
class=
"doctors section"
>
<div
class=
"container section-title"
>
<h2>
الفريق الطبي
</h2>
<h2
style=
"margin-top: 1em;"
>
الفريق الطبي
</h2>
</div>
<div
class=
"container mt"
>
...
...
@@ -148,7 +148,7 @@
</div>
<div
class=
"col-lg-6 content"
data-aos=
"fade-up"
data-aos-delay=
"100"
>
<h3
class=
"text-center"
>
عن المستوصف
</h3>
<h3
class=
"text-center"
style=
"margin-top:1em"
>
عن المستوصف
</h3>
<p
class=
"text-center"
style=
"font-weight: 600;"
>
يوفر مستوصف مركز الدراسات والبحوث العلمية الخدمات الطبية لموظفي المركز
</p>
...
...
Clinics.Frontend/src/app/components/shared/template/header/header.component.ts
View file @
a34155c2
...
...
@@ -5,6 +5,7 @@ import { Router } from '@angular/router';
import
{
Roles
}
from
'../../../../classes/authentication/roles'
;
import
{
NgbModal
}
from
'@ng-bootstrap/ng-bootstrap'
;
import
{
ToastrService
}
from
'ngx-toastr'
;
import
{
ViewportScroller
}
from
'@angular/common'
;
@
Component
({
selector
:
'app-header'
,
...
...
@@ -17,7 +18,9 @@ export class HeaderComponent {
constructor
(
private
authenticationService
:
AuthenticationService
,
private
router
:
Router
,
private
modalService
:
NgbModal
,
private
toastrService
:
ToastrService
)
{
}
private
toastrService
:
ToastrService
,
private
scroller
:
ViewportScroller
)
{
}
//#endregion
//#region Inputs
...
...
@@ -51,6 +54,9 @@ export class HeaderComponent {
onLogin
(
userData
:
UserData
)
{
this
.
userData
=
userData
;
this
.
router
.
navigate
([
''
]);
this
.
selectedButton
=
'Home'
;
this
.
scroller
.
scrollToPosition
([
0
,
0
]);
}
//#endregion
...
...
@@ -62,7 +68,9 @@ export class HeaderComponent {
this
.
toastrService
.
success
(
"تم تسجيل الخروج بنجاح ✔"
);
this
.
userData
=
null
;
this
.
showDropdown
=
false
;
this
.
selectedButton
=
'Home'
;
this
.
router
.
navigate
([
''
]);
this
.
scroller
.
scrollToPosition
([
0
,
0
]);
}
//#endregion
...
...
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