Skip to content

Commit

Permalink
use navigated viewer instead of viewer
Browse files Browse the repository at this point in the history
  • Loading branch information
mbritense committed Nov 15, 2024
1 parent aaf56e2 commit 93016bf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
[size]="actionsObs.compactMode ? 'sm' : 'md'"
>
<cds-dropdown-list
[items]="actionsObs.processDefinitionVersionsListItems"
[items]="actionsObs.processDefinitionVersionsListItems || []"
></cds-dropdown-list>
</cds-dropdown>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ import {
TagModule,
} from 'carbon-components-angular';
import Modeler from 'bpmn-js/lib/Modeler';
import BpmnViewer from 'bpmn-js';
import NavigatedViewer from 'bpmn-js/lib/NavigatedViewer';
import {ReactiveFormsModule} from '@angular/forms';
import {TranslateModule, TranslateService} from '@ngx-translate/core';
import {Deploy16} from '@carbon/icons';
Expand Down Expand Up @@ -83,7 +83,7 @@ export class ProcessManagementEditorComponent implements AfterViewInit, OnDestro
);

private _bpmnModeler!: Modeler;
private _bpmnViewer!: BpmnViewer;
private _bpmnViewer!: NavigatedViewer;

public isReadOnlyProcess$ = new BehaviorSubject<boolean>(false);
public isSystemProcess$ = new BehaviorSubject<boolean>(false);
Expand Down Expand Up @@ -206,7 +206,7 @@ export class ProcessManagementEditorComponent implements AfterViewInit, OnDestro
}

private initViewer(): void {
this._bpmnViewer = new BpmnViewer();
this._bpmnViewer = new NavigatedViewer();
this._bpmnViewer?.attachTo(this.viewerElementRef.nativeElement);
}

Expand Down

0 comments on commit 93016bf

Please sign in to comment.