Kaynağa Gözat

fixes dashBoard

Hima 6 yıl önce
ebeveyn
işleme
2b9e781dc6

+ 2 - 1
src/app/dashboard/hospitals/add-hospital/add-hospital.component.html

@@ -5,7 +5,7 @@
       <div class="col-12">
         <ul class="list-unstyled titileLi-w">
           <li class="headingText-w">{{servicesType}} </li>
-          <li class="headingText-w" style="cursor:pointer" (click)="authSer.perviousLocation()"> {{typeFirstLink}} > </li>
+          <li class="headingText-w" style="cursor:pointer" (click)="authSer.perviousLocation()"> {{typeFirstLink}}</li>
           <li class="headingText-w activeLi-w" style="margin-right:5px"> {{typeLink}} </li>
         </ul>
       </div>
@@ -40,6 +40,7 @@
                       <select class="form-control" formControlName="display_location" id="displayLocation">
                         <option value="internal">داخليه</option>
                         <option value="external">خارجيه</option>
+                        <option value="both">كلاهما</option>
                       </select>
                     </div>
                   </div>

+ 4 - 0
src/app/dashboard/hospitals/add-hospital/add-hospital.component.ts

@@ -295,6 +295,7 @@ export class AddHospitalComponent implements OnInit, OnDestroy {
                 this.checkSaveClick = false;
                 console.log(responce);
                 this.toastr.success('تم التعديل بنجاح ');
+                this.location.back();
               }, (error) => {
                 this.checkSaveClick = false;
                 console.log(error);
@@ -307,6 +308,7 @@ export class AddHospitalComponent implements OnInit, OnDestroy {
                 this.checkSaveClick = false;
                 console.log(responce);
                 this.toastr.success('تم التعديل بنجاح ');
+                this.location.back();
               }, (error) => {
                 this.checkSaveClick = false;
                 console.log(error);
@@ -326,6 +328,7 @@ export class AddHospitalComponent implements OnInit, OnDestroy {
                 this.checkSaveClick = false;
                 console.log(responce);
                 this.toastr.success('تم التعديل بنجاح ');
+                this.location.back();
               }, (error) => {
                 this.checkSaveClick = false;
                 console.log(error);
@@ -338,6 +341,7 @@ export class AddHospitalComponent implements OnInit, OnDestroy {
                 this.checkSaveClick = false;
                 console.log(responce);
                 this.toastr.success('تم التعديل بنجاح ');
+                this.location.back();
               }, (error) => {
                 this.checkSaveClick = false;
                 console.log(error);

+ 1 - 1
src/app/dashboard/news/news-list/news-list.component.html

@@ -69,7 +69,7 @@
           </td>
           <td>{{news.title}}</td>
           <td>
-            {{news.ranking}}
+            {{news.ranking == 10000  ? 'المزيد' : news.ranking}}
             <!-- <select class="form-control" [ngModel]="news.ranking" (change)="changeRanking($event, news.id)">
               <option value="1">1</option>
               <option value="2">2</option>