Commit ce748d03 authored by Almouhannad's avatar Almouhannad

(F) Change dropdown behavior

parent a34155c2
...@@ -52,15 +52,15 @@ ...@@ -52,15 +52,15 @@
<li><a [routerLink]="['admin/receptionists']"><button class="btn" <li><a [routerLink]="['admin/receptionists']"><button class="btn"
[class]="{'btn-outline-primary': isSelected('Admin-Receptionists'), 'btn-outline-secondary': !isSelected('Admin-Receptionists')}" [class]="{'btn-outline-primary': isSelected('Admin-Receptionists'), 'btn-outline-secondary': !isSelected('Admin-Receptionists')}"
(click)="selectButton('Admin-Receptionists')">موظفو الاستقبال</button></a></li> (click)="showDropdown=false; selectButton('Admin-Receptionists')">موظفو الاستقبال</button></a></li>
<li><a [routerLink]="['admin/doctors']"><button class="btn" <li><a [routerLink]="['admin/doctors']"><button class="btn"
[class]="{'btn-outline-primary': isSelected('Admin-Dorctors'), 'btn-outline-secondary': !isSelected('Admin-Dorctors')}" [class]="{'btn-outline-primary': isSelected('Admin-Dorctors'), 'btn-outline-secondary': !isSelected('Admin-Dorctors')}"
(click)="selectButton('Admin-Dorctors')">الأطباء</button></a></li> (click)="showDropdown=false; selectButton('Admin-Dorctors')">الأطباء</button></a></li>
<li><a [routerLink]="'home'"><button class="btn" <li><a [routerLink]="'home'"><button class="btn"
[class]="{'btn-outline-primary': isSelected('Home'), 'btn-outline-secondary': !isSelected('Home')}" [class]="{'btn-outline-primary': isSelected('Home'), 'btn-outline-secondary': !isSelected('Home')}"
(click)="selectButton('Home')">الصفحة الرئيسية</button></a></li> (click)="showDropdown=false; selectButton('Home')">الصفحة الرئيسية</button></a></li>
</ul> </ul>
</nav> </nav>
...@@ -82,7 +82,7 @@ ...@@ -82,7 +82,7 @@
<li><a [routerLink]="'home'"><button class="btn" <li><a [routerLink]="'home'"><button class="btn"
[class]="{'btn-outline-primary': isSelected('Home'), 'btn-outline-secondary': !isSelected('Home')}" [class]="{'btn-outline-primary': isSelected('Home'), 'btn-outline-secondary': !isSelected('Home')}"
(click)="selectButton('Home')">الصفحة الرئيسية</button></a></li> (click)="showDropdown=false; selectButton('Home')">الصفحة الرئيسية</button></a></li>
</ul> </ul>
</nav> </nav>
...@@ -105,15 +105,15 @@ ...@@ -105,15 +105,15 @@
<li><a [routerLink]="['receptionist/doctors']"><button class="btn" <li><a [routerLink]="['receptionist/doctors']"><button class="btn"
[class]="{'btn-outline-primary': isSelected('RecDotctors'), 'btn-outline-secondary': !isSelected('RecDotctors')}" [class]="{'btn-outline-primary': isSelected('RecDotctors'), 'btn-outline-secondary': !isSelected('RecDotctors')}"
(click)="selectButton('RecDotctors')">الأطباء</button></a></li> (click)="showDropdown=false; selectButton('RecDotctors')">الأطباء</button></a></li>
<li><a [routerLink]="'receptionist/waitinglist'"><button class="btn" <li><a [routerLink]="'receptionist/waitinglist'"><button class="btn"
[class]="{'btn-outline-primary': isSelected('WaitingList'), 'btn-outline-secondary': !isSelected('WaitingList')}" [class]="{'btn-outline-primary': isSelected('WaitingList'), 'btn-outline-secondary': !isSelected('WaitingList')}"
(click)="selectButton('WaitingList')">قائمة الانتظار</button></a></li> (click)="showDropdown=false; selectButton('WaitingList')">قائمة الانتظار</button></a></li>
<li><a [routerLink]="'home'"><button class="btn" <li><a [routerLink]="'home'"><button class="btn"
[class]="{'btn-outline-primary': isSelected('Home'), 'btn-outline-secondary': !isSelected('Home')}" [class]="{'btn-outline-primary': isSelected('Home'), 'btn-outline-secondary': !isSelected('Home')}"
(click)="selectButton('Home')">الصفحة الرئيسية</button></a></li> (click)="showDropdown=false; selectButton('Home')">الصفحة الرئيسية</button></a></li>
</ul> </ul>
</nav> </nav>
......
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