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 @@
...
@@ -62,7 +62,7 @@
<section
id=
"doctors"
class=
"doctors section"
>
<section
id=
"doctors"
class=
"doctors section"
>
<div
class=
"container section-title"
>
<div
class=
"container section-title"
>
<h2>
الفريق الطبي
</h2>
<h2
style=
"margin-top: 1em;"
>
الفريق الطبي
</h2>
</div>
</div>
<div
class=
"container mt"
>
<div
class=
"container mt"
>
...
@@ -148,7 +148,7 @@
...
@@ -148,7 +148,7 @@
</div>
</div>
<div
class=
"col-lg-6 content"
data-aos=
"fade-up"
data-aos-delay=
"100"
>
<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
class=
"text-center"
style=
"font-weight: 600;"
>
يوفر مستوصف مركز الدراسات والبحوث العلمية الخدمات الطبية لموظفي المركز
يوفر مستوصف مركز الدراسات والبحوث العلمية الخدمات الطبية لموظفي المركز
</p>
</p>
...
...
Clinics.Frontend/src/app/components/shared/template/header/header.component.ts
View file @
a34155c2
...
@@ -5,6 +5,7 @@ import { Router } from '@angular/router';
...
@@ -5,6 +5,7 @@ import { Router } from '@angular/router';
import
{
Roles
}
from
'../../../../classes/authentication/roles'
;
import
{
Roles
}
from
'../../../../classes/authentication/roles'
;
import
{
NgbModal
}
from
'@ng-bootstrap/ng-bootstrap'
;
import
{
NgbModal
}
from
'@ng-bootstrap/ng-bootstrap'
;
import
{
ToastrService
}
from
'ngx-toastr'
;
import
{
ToastrService
}
from
'ngx-toastr'
;
import
{
ViewportScroller
}
from
'@angular/common'
;
@
Component
({
@
Component
({
selector
:
'app-header'
,
selector
:
'app-header'
,
...
@@ -17,7 +18,9 @@ export class HeaderComponent {
...
@@ -17,7 +18,9 @@ export class HeaderComponent {
constructor
(
private
authenticationService
:
AuthenticationService
,
constructor
(
private
authenticationService
:
AuthenticationService
,
private
router
:
Router
,
private
router
:
Router
,
private
modalService
:
NgbModal
,
private
modalService
:
NgbModal
,
private
toastrService
:
ToastrService
)
{
}
private
toastrService
:
ToastrService
,
private
scroller
:
ViewportScroller
)
{
}
//#endregion
//#endregion
//#region Inputs
//#region Inputs
...
@@ -51,6 +54,9 @@ export class HeaderComponent {
...
@@ -51,6 +54,9 @@ export class HeaderComponent {
onLogin
(
userData
:
UserData
)
onLogin
(
userData
:
UserData
)
{
{
this
.
userData
=
userData
;
this
.
userData
=
userData
;
this
.
router
.
navigate
([
''
]);
this
.
selectedButton
=
'Home'
;
this
.
scroller
.
scrollToPosition
([
0
,
0
]);
}
}
//#endregion
//#endregion
...
@@ -62,7 +68,9 @@ export class HeaderComponent {
...
@@ -62,7 +68,9 @@ export class HeaderComponent {
this
.
toastrService
.
success
(
"تم تسجيل الخروج بنجاح ✔"
);
this
.
toastrService
.
success
(
"تم تسجيل الخروج بنجاح ✔"
);
this
.
userData
=
null
;
this
.
userData
=
null
;
this
.
showDropdown
=
false
;
this
.
showDropdown
=
false
;
this
.
selectedButton
=
'Home'
;
this
.
router
.
navigate
([
''
]);
this
.
router
.
navigate
([
''
]);
this
.
scroller
.
scrollToPosition
([
0
,
0
]);
}
}
//#endregion
//#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