Skip to content

Commit 3836551

Browse files
committed
Merge branch 'teams-component-upgrade' of https://github.com/ngageoint/mage-server into team-details-upgrade
2 parents 7aa7c50 + a161f58 commit 3836551

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

web-app/admin/src/app/admin/admin-teams/dashboard/team-dashboard.component.spec.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import { TeamsService } from '../teams-service';
1111
import { Team } from '../team';
1212
import { CreateTeamDialogComponent } from '../create-team/create-team.component';
1313

14-
fdescribe('TeamDashboardComponent', () => {
14+
describe('TeamDashboardComponent', () => {
1515
let component: TeamDashboardComponent;
1616
let fixture: ComponentFixture<TeamDashboardComponent>;
1717
let mockTeamsService: jasmine.SpyObj<TeamsService>;
@@ -52,7 +52,6 @@ fdescribe('TeamDashboardComponent', () => {
5252
mockDialog = TestBed.inject(MatDialog) as jasmine.SpyObj<MatDialog>;
5353

5454
mockTeamsService.getTeams.and.returnValue(of(mockTeamsResponse));
55-
mockTeamsService.getTeams.calls.reset();
5655
});
5756

5857
it('should create', () => {

web-app/admin/src/app/admin/admin-teams/dashboard/team-dashboard.component.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ export class TeamDashboardComponent implements OnInit, OnDestroy {
112112

113113
gotoTeam(team: Team): void {
114114
// TODO: convert to this to using a router once upgrade is complete
115-
window.location.href = `/#/home/teams/${team.id}`;
115+
const baseUrl = window.location.href.split('#')[0];
116+
window.location.href = `${baseUrl}#/home/teams/${team.id}`;
116117
}
117118
}

0 commit comments

Comments
 (0)