Skip to content
This repository has been archived by the owner on Mar 2, 2020. It is now read-only.

Commit

Permalink
Fix trace view controller
Browse files Browse the repository at this point in the history
  • Loading branch information
munterkalmsteiner committed Oct 14, 2018
1 parent 99d0293 commit 1f8b1d2
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
import { ProcessStep } from '../../../../../../model/ProcessStep';
import { Type } from '../../../../../../util/type';
import { Injectable } from '@angular/core';
import { Config } from '../../../../../../config/config';
import { SelectedElementService } from '../../../../side/modules/selected-element/services/selected-element.service';
import { AdditionalInformationService } from '../../../../side/modules/links-actions/services/additional-information.service';
import { AuthenticationService } from '../../../../main/authentication/modules/auth/services/authentication.service';
import { Folder } from '../../../../../../model/Folder';
import { ISpecmateModelObject } from '../../../../../../model/ISpecmateModelObject';
import { CEGModel } from '../../../../../../model/CEGModel';

@Injectable()
export class ViewControllerService {
Expand Down Expand Up @@ -64,8 +63,7 @@ export class ViewControllerService {
public get tracingLinksShown(): boolean {
let selected = this.selectedElementService.selectedElement;
if (this.isLoggedIn && selected !== undefined) {
let model = selected as ISpecmateModelObject;
if (model.tracesTo !== undefined) {
if (Type.is(selected, CEGModel) && selected['tracesTo']) {
return true;
}
}
Expand Down

0 comments on commit 1f8b1d2

Please sign in to comment.