Skip to content

Commit

Permalink
feat(admin): color of block destinations
Browse files Browse the repository at this point in the history
Distinguish block destinations by color on the services list.
  • Loading branch information
sarkapalkovicova authored and HejdaJakub committed Oct 23, 2023
1 parent 962926a commit 5ff7566
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@
background-color: #ffcdd2;
}

.make-black {
background-color: #00000026;
}

.cursor-pointer {
cursor: pointer;
}
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,10 @@
class="dark-hover-list-item"
*matRowDef="let serviceState; columns: displayedColumns;"
[class.disable-outline]="disableRouting || !serviceState.task"
[class.make-yellow]="serviceState.status === 'WARNING'"
[class.make-green]="serviceState.status === 'DONE'"
[class.make-red]="serviceState.status === 'GENERROR' || serviceState.status === 'SENDERROR' || serviceState.status === 'ERROR'"
[class.make-black]="serviceState.blockedOnFacility"
[class.make-yellow]="!serviceState.blockedOnFacility && serviceState.status === 'WARNING'"
[class.make-green]="!serviceState.blockedOnFacility && serviceState.status === 'DONE'"
[class.make-red]="!serviceState.blockedOnFacility && (serviceState.status === 'GENERROR' || serviceState.status === 'SENDERROR' || serviceState.status === 'ERROR')"
[class.cursor-pointer]="!disableRouting && serviceState.task !== null"
[routerLink]="disableRouting || serviceState.task === null ? null : ['/facilities', serviceState.facility.id, 'services-status', serviceState.taskId]"
[perunWebAppsMiddleClickRouterLink]="disableRouting || serviceState.task === null ? null : ['/facilities', serviceState.facility.id, 'services-status', serviceState.taskId]"></tr>
Expand Down

0 comments on commit 5ff7566

Please sign in to comment.