amr 5 years ago
parent
commit
7d23383625

+ 1 - 1
src/app/dashboard/females_request_types/females-request-types-add/females-request-types-add.component.ts

@@ -136,7 +136,7 @@ export class FemalesRequestTypesAddComponent implements OnInit {
         (error) => {
           this.disable = false;
           console.log(error.error);
-          if(error.error.error == 'Requests already uses this type can not modify it'){
+          if(error.error.error  == 'Requests already uses this type can not modify it'){
             this.toastr.warning('لا يوجد صلاحية لتعديل الطلب')
           }else{
             console.log(error);

+ 1 - 1
src/app/dashboard/living_system_reports/living-system-reports/living-system-reports.component.html

@@ -67,7 +67,7 @@
            <div class="row" *ngIf="reportValue == 3 && showSearchBtn " style="justify-content: center; margin-top: 50px">
             <input type="text" placeholder="{{placeholder}}" class="form-control numberReport-s" [(ngModel)]="searchValue" style="width: 25%"/>
            </div>
-           <div class="row fit-filter-style" *ngIf="showSearchBtn">
+           <div class="row fit-filter-style" *ngIf="showSearchBtn ">
               <button class="btn btn-success buttonS" (click)="onSearch()" style="margin-left: 2%;">أبحث</button>            
           </div>
 

+ 4 - 1
src/app/dashboard/living_system_reports/living-system-reports/living-system-reports.component.ts

@@ -147,13 +147,16 @@ getBuilding(event){
         this.buildings.splice(0, 0 ,  {
           id: 'all',
           building_name:'أختار اسم المبنى'
+        
         },
           );
           if(x > 0)
           this.isBuildingType= true;
 
           console.log(this.building_id , this.building_type_id , this.housing_complex_id);
-          
+          if(this.fristReport || this.secondReport || this.thirdReport){
+            this.showSearchBtn = true;
+          }
           
       },
       err =>{