Hima před 5 roky
rodič
revize
df09799d52

+ 2 - 17
src/app/dashboard/follow-communications-adminstrations/follow-communications-adminstration-edit/follow-communications-adminstration-edit.component.ts

@@ -176,22 +176,6 @@ export class FollowCommunicationsAdminstrationEditComponent implements OnInit {
         this.subLocationVal = this.maintData.sub_location_id;
 
         this.returnEditData();
-      
-
-        // this.selectedDepartments = [];
-        // if(this.maintData.adminstrations.length > 0) {
-        //   for(let i = 0; i < this.maintData.departments.length; i++) {
-        //     this.selectedDepartments.push(this.maintData.departments[i]);
-        //     for(let j = 0; j < this.departments.length; j++) {
-        //       if(this.maintData.departments[i].id == this.departments[j].id) {
-        //         this.departments[i].selected = true;
-        //       }
-        //     }
-        //   }
-        // }
-
-        // console.log('selected adminstrations', this.selectedDepartments);
-
         
         this.bindingDateSplitEnd = {
           year: parseInt(this.maintData.created_date.split('-')[0]),
@@ -200,7 +184,7 @@ export class FollowCommunicationsAdminstrationEditComponent implements OnInit {
         }
 
         this.userData = responce['communication']['user'];
-        this.spinner.hide();
+        
         console.log('gggg', this.maintData);
         if(this.maintData['files'].length > 0) {
           this.showAttachements = true;
@@ -208,6 +192,7 @@ export class FollowCommunicationsAdminstrationEditComponent implements OnInit {
           this.showAttachements = false;
         }
         console.log('user data ', this.userData);
+        this.spinner.hide();
       },
       (error) => {
         console.log(error);