* See the License for the specific language governing permissions and
* limitations under the License.
*
- * ============LICENSE_END============================================
+ * ============LICENSE_END===========================================
*
*
*/
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) { }