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
4e326616
Commit
4e326616
authored
Aug 20, 2024
by
Almouhannad
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(F) Fix button names variables
parent
2a4cba14
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
5 deletions
+9
-5
home.component.html
Clinics.Frontend/src/app/components/home/home.component.html
+4
-0
header.component.html
.../src/app/components/template/header/header.component.html
+4
-4
header.component.ts
...nd/src/app/components/template/header/header.component.ts
+1
-1
No files found.
Clinics.Frontend/src/app/components/home/home.component.html
View file @
4e326616
...
@@ -149,4 +149,8 @@
...
@@ -149,4 +149,8 @@
</section>
</section>
<!-- #endregion -->
<!-- #endregion -->
<!-- #region about -->
<!-- #endregion -->
</div>
</div>
\ No newline at end of file
Clinics.Frontend/src/app/components/template/header/header.component.html
View file @
4e326616
...
@@ -12,14 +12,14 @@
...
@@ -12,14 +12,14 @@
<nav
class=
"navmenu custom-buttons"
>
<nav
class=
"navmenu custom-buttons"
>
<ul>
<ul>
<li><a><button
class=
"btn"
<li><a><button
class=
"btn"
[
class
]="{'
btn-outline-primary
'
:
isSelected
('
Contact
Us
'),
'
btn-outline-secondary
'
:
!
isSelected
('
Contact
Us
')}"
[
class
]="{'
btn-outline-primary
'
:
isSelected
('
About
'),
'
btn-outline-secondary
'
:
!
isSelected
('
About
')}"
(
click
)="
selectButton
('
Contact
Us
')"
>
عن المستوصف
</button></a></li>
(
click
)="
selectButton
('
About
')"
>
عن المستوصف
</button></a></li>
<li><a
href=
"#doctors"
><button
class=
"btn"
<li><a
href=
"#doctors"
><button
class=
"btn"
[
class
]="{'
btn-outline-primary
'
:
isSelected
('
Doctors
'),
'
btn-outline-secondary
'
:
!
isSelected
('
Doctors
')}"
[
class
]="{'
btn-outline-primary
'
:
isSelected
('
Doctors
'),
'
btn-outline-secondary
'
:
!
isSelected
('
Doctors
')}"
(
click
)="
selectButton
('
Doctors
')"
>
الفريق الطبي
</button></a></li>
(
click
)="
selectButton
('
Doctors
')"
>
الفريق الطبي
</button></a></li>
<li><a
href=
"#"
><button
class=
"btn"
<li><a
href=
"#"
><button
class=
"btn"
[
class
]="{'
btn-outline-primary
'
:
isSelected
('
Main
Menu
'),
'
btn-outline-secondary
'
:
!
isSelected
('
Main
Menu
')}"
[
class
]="{'
btn-outline-primary
'
:
isSelected
('
Home
'),
'
btn-outline-secondary
'
:
!
isSelected
('
Home
')}"
(
click
)="
selectButton
('
Main
Menu
')"
>
الصفحة الرئيسية
</button></a></li>
(
click
)="
selectButton
('
Home
')"
>
الصفحة الرئيسية
</button></a></li>
</ul>
</ul>
</nav>
</nav>
</div>
</div>
...
...
Clinics.Frontend/src/app/components/template/header/header.component.ts
View file @
4e326616
...
@@ -8,7 +8,7 @@ import { Component } from '@angular/core';
...
@@ -8,7 +8,7 @@ import { Component } from '@angular/core';
export
class
HeaderComponent
{
export
class
HeaderComponent
{
//#region Selected button
//#region Selected button
private
selectedButton
:
string
=
'
Main Menu
'
;
private
selectedButton
:
string
=
'
Home
'
;
isSelected
(
buttonName
:
string
):
boolean
{
isSelected
(
buttonName
:
string
):
boolean
{
return
this
.
selectedButton
===
buttonName
;
return
this
.
selectedButton
===
buttonName
;
...
...
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