Skip to content

Commit

Permalink
Add context menu option "Edit workflow"
Browse files Browse the repository at this point in the history
  • Loading branch information
tkleinke committed Mar 3, 2025
1 parent c6740e5 commit fc50a76
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
6 changes: 6 additions & 0 deletions core/src/services/project-configuration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,12 @@ export class ProjectConfiguration {
}


public getWorkflowCategories(): Array<CategoryForm> {

return this.getCategoryWithSubcategories('WorkflowStep');
}


public getImageCategories(): Array<CategoryForm> {

return this.getCategoryWithSubcategories('Image');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,14 @@
<span class="dropdown-entry-label" i18n="@@resources.contextMenu.delete">Löschen</span>
</div>

<hr *ngIf="isEditWorkflowOptionAvailable()">

<div *ngIf="isEditWorkflowOptionAvailable()"
id="context-menu-edit-workflow-button" class="dropdown-item" (click)="selectAction('edit-workflow')">
<span class="mdi mdi-shovel"></span>
<span class="dropdown-entry-label" i18n="@@resources.contextMenu.delete">Arbeitsschritte dokumentieren</span>
</div>

<hr *ngIf="isCreateGeometryOptionAvailable() || isEditGeometryOptionAvailable()">

<div *ngIf="isCreateGeometryOptionAvailable()"
Expand Down

0 comments on commit fc50a76

Please sign in to comment.