Fixed Portal-FE-os build issues
[portal.git] / portal-FE-common / src / app / pages / get-access / get-access.component.ts
index a745489..5edd17b 100644 (file)
@@ -31,7 +31,7 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  *
- * ============LICENSE_END============================================
+ * ============LICENSE_END===========================================
  *
  * 
  */
@@ -47,16 +47,16 @@ import { environment } from '../../../environments/environment';
   styleUrls: ['./get-access.component.scss']
 })
 export class GetAccessComponent implements OnInit {
-
+  api = environment.api;
   isLoadingTable: boolean;
   appTable: any[];
   displayedColumns: string[] = ['function', 'applicationName', 'roleName', 'currentRole', 'requestStatus'];
   getAccessDataSource = new MatTableDataSource(this.appTable);
   @ViewChild(MatPaginator) paginator: MatPaginator;
   showSpinner: boolean;
-  getAccessUrl = environment.getAccessUrl;
-  getAccessName = environment.getAccessName;
-  getAccessInfo = environment.getAccessInfo;
+  getAccessUrl = this.api.getAccessUrl;
+  getAccessName = this.api.getAccessName;
+  getAccessInfo = this.api.getAccessInfo;
 
   constructor(private getAccessService: GetAccessService) { }