Skip to content

Commit

Permalink
system tags
Browse files Browse the repository at this point in the history
  • Loading branch information
mbritense committed Nov 15, 2024
1 parent 776719f commit aaf56e2
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
loading: loading$ | async,
changesPending: changesPending$ | async,
isReadOnlyProcess: isReadOnlyProcess$ | async,
isSystemProcess: isSystemProcess$ | async,
compactMode: compactMode$ | async,
} as actionsObs"
>
Expand All @@ -60,7 +61,8 @@
(selected)="selectedVersionChange($event)"
[disabled]="
actionsObs.loading ||
(actionsObs.processDefinitionVersionsListItems || []).length === 0
(actionsObs.processDefinitionVersionsListItems || []).length === 0 ||
(actionsObs.processDefinitionVersionsListItems || []).length === 1
"
[size]="actionsObs.compactMode ? 'sm' : 'md'"
>
Expand All @@ -70,9 +72,15 @@
</cds-dropdown>
</div>

@if (actionsObs.isReadOnlyProcess) {
<cds-tag type="blue">{{ 'processManagement.readOnly' | translate }}</cds-tag>
}
<div class="page-header-actions__tags">
<cds-tag *ngIf="actionsObs.isReadOnlyProcess" type="blue">{{
'processManagement.readOnly' | translate
}}</cds-tag>

<cds-tag *ngIf="actionsObs.isSystemProcess" type="red">{{
'processManagement.systemProcess' | translate
}}</cds-tag>
</div>
</div>

<div class="page-header-actions__buttons">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,11 @@
align-items: flex-end;
}

&__tags {
display: flex;
gap: 8px;
}

&__version-dropdown {
width: 150px;
}
Expand Down

0 comments on commit aaf56e2

Please sign in to comment.