Align the code to share the Raptor to Portal 99/111099/1
authorjegadeeshbabu3 <jegadeesh.babu@att.com>
Mon, 10 Aug 2020 17:41:28 +0000 (23:11 +0530)
committerjegadeeshbabu3 <jegadeesh.babu@att.com>
Mon, 10 Aug 2020 17:42:38 +0000 (23:12 +0530)
Align the code to share the Raptor to Portal

Issue-ID: PORTAL-980
Change-Id: Id8d94165620dbe496b253e59c8eee4d1638f933b
Signed-off-by: jegadeeshbabu3 <jegadeesh.babu@att.com>
ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/pages/analytics/Report_List/Report/run/run-report/run-report.component.html
ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/pages/analytics/Report_List/Report/run/run-report/run-report.component.ts
ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/pages/analytics/Report_List/display-area/display-area.component.ts
ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/pages/analytics/Report_List/display-area/display-area.service.spec.ts [new file with mode: 0644]
ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/pages/analytics/Report_List/display-area/display-area.service.ts [new file with mode: 0644]

index 16c1571..42035f6 100644 (file)
@@ -87,7 +87,7 @@
                             </div>
                             <div *ngIf="row[keys].split('|')[0] !== 'linkToReport' && row[keys].split('|')[0] !== 'linkToFeedback' && row[keys].split('|')[0] !== 'linkToMail'
                                 && row[keys].split('|')[0] !== 'clickToDownload' " 
-                                 [ngStyle]="setStyle(row[keys].split('|')[1])">
+                                 [ngStyle]="setStyle(row[keys])">
                                 {{row[keys].split('|')[0]}}&nbsp;</div>
                         </td>
                         <td *matFooterCellDef align="center" mat-footer-cell>{{getDisplayTotal(keys)}}</td>
index 7f1e833..af61a97 100644 (file)
@@ -20,7 +20,6 @@ import { GridsterConfig, GridsterItem, GridType } from 'angular-gridster2';
 import { DomSanitizer, SafeResourceUrl } from '@angular/platform-browser';
 import { DisplayHtml } from '../../display-html';
 import { FormControl } from '@angular/forms';
-import { HeaderService } from 'src/app/shared/services/header/header.service';
 import { NgbModal } from '@ng-bootstrap/ng-bootstrap';
 import { ConfirmationModalComponent } from 'src/app/modals/confirmation-modal/confirmation-modal.component';
 
index e08190e..a397385 100644 (file)
@@ -1,6 +1,6 @@
 import { Component, OnInit, ViewChild } from '@angular/core';
 import { ActivatedRoute, Router } from '@angular/router';
-import { DisplayAreaService } from 'src/app/shared/services/displayArea/display-area.service';
+import { DisplayAreaService } from './display-area.service';
 import { MatPaginator } from '@angular/material/paginator';
 import { MatSort } from '@angular/material/sort';
 import { MatTable, MatTableDataSource } from '@angular/material/table';
diff --git a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/pages/analytics/Report_List/display-area/display-area.service.spec.ts b/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/pages/analytics/Report_List/display-area/display-area.service.spec.ts
new file mode 100644 (file)
index 0000000..f8324da
--- /dev/null
@@ -0,0 +1,13 @@
+// import { TestBed } from '@angular/core/testing';
+
+// import { DisplayAreaService } from './display-area.service';
+
+// describe('DisplayAreaService', () => {
+//   beforeEach(() => TestBed.configureTestingModule({}));
+
+//   it('should be created', () => {
+//     const service: DisplayAreaService = TestBed.get(DisplayAreaService);
+//     expect(service).toBeTruthy();
+//   });
+// });
+
diff --git a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/pages/analytics/Report_List/display-area/display-area.service.ts b/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/pages/analytics/Report_List/display-area/display-area.service.ts
new file mode 100644 (file)
index 0000000..54290b9
--- /dev/null
@@ -0,0 +1,16 @@
+import { Injectable } from '@angular/core';
+import { HttpClient } from '@angular/common/http';
+import { Observable } from 'rxjs';
+import { environment } from '../../../../../environments/environment';
+@Injectable({
+  providedIn: 'root'
+})
+export class DisplayAreaService {
+
+  constructor(private _http : HttpClient) { }
+
+  getMenuIdSpecificReports(menuId : string) : Observable<any>
+  {
+    return this._http.get(environment.baseUrl + "raptor.htm?action=quicklinks.json&quick_links_menu_id=" + menuId);
+  }
+}