Skip to content

Commit

Permalink
User navigation #657
Browse files Browse the repository at this point in the history
* User navigation

* regex
  • Loading branch information
PawZar authored May 15, 2019
1 parent 197bce1 commit 3ab28a6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 4 additions & 2 deletions src/app/admin/admin.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,10 @@ export class AdminService {
}

getUsers(nextPage?: string): Observable<UserInfoStats[]> {
const url = (nextPage && nextPage.replace('http', 'https')) ||
`${environment.serverUrl}/admin/users`;
const url = (
nextPage && (environment.serverUrl.search(/^https:/) >= 0 && nextPage.replace(/^http:/, 'https:'))
|| nextPage
) || `${environment.serverUrl}/admin/users`;
return this.http.get<UserInfoStats[]>(url);
}

Expand Down
2 changes: 0 additions & 2 deletions src/app/common/request.interceptor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ import { ErrorResponseDialogComponent } from "common/dialog/error-response-dialo
import { PushNotificationsService } from 'common/components/push-notifications/push-notifications.service';
import { pushNotificationTypesEnum } from 'models/enum/push-notification.enum';
import { environment } from "environments/environment.ts";
import { AppState } from "models/app-state.model";
import { Store } from "@ngrx/store";
import { HandleSubscription } from "common/handle-subscription";
import { ImpersonationService } from "../impersonation/impersonation.service";

Expand Down

0 comments on commit 3ab28a6

Please sign in to comment.