Commit 4e326616 authored by Almouhannad's avatar Almouhannad

(F) Fix button names variables

parent 2a4cba14
...@@ -149,4 +149,8 @@ ...@@ -149,4 +149,8 @@
</section> </section>
<!-- #endregion --> <!-- #endregion -->
<!-- #region about -->
<!-- #endregion -->
</div> </div>
\ No newline at end of file
...@@ -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>
......
...@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment