mirror of
https://github.com/jwetzell/showbridge-webui.git
synced 2026-09-04 21:09:00 +00:00
formatting
This commit is contained in:
@@ -7,14 +7,19 @@
|
||||
>
|
||||
<div class="flex items-center justify-end">
|
||||
<div class="flex items-center">
|
||||
<mat-icon [style.color]="indicatorColor()" matTooltip="Route Indicator">chevron_right</mat-icon>
|
||||
<mat-icon [style.color]="indicatorColor()" matTooltip="Route Indicator"
|
||||
>chevron_right</mat-icon
|
||||
>
|
||||
</div>
|
||||
<div class="grow text-left ml-2 text-white">Route {{ index() }}</div>
|
||||
<div class="flex items-center justify-center hover:bg-gray-700 hover:cursor-pointer" (click)="delete.emit()">
|
||||
<div
|
||||
class="flex items-center justify-center hover:bg-gray-700 hover:cursor-pointer"
|
||||
(click)="delete.emit()"
|
||||
>
|
||||
<mat-icon class="text-red-500!">close</mat-icon>
|
||||
</div>
|
||||
</div>
|
||||
<hr class="bg-gray-600 h-0.5 border-0">
|
||||
<hr class="bg-gray-600 h-0.5 border-0" />
|
||||
<div>
|
||||
<form [formGroup]="formGroup">
|
||||
<div class="m-2">
|
||||
@@ -58,7 +63,7 @@
|
||||
<div class="text-md text-white text-center">Processors</div>
|
||||
</div>
|
||||
@if (processors() !== undefined && processors()!.length > 0) {
|
||||
<div class="border-2 border-gray-500 m-2">
|
||||
<div class="border-2 border-gray-500 m-2">
|
||||
@for (processor of processors(); track $index; let i = $index) {
|
||||
<div cdkDrag>
|
||||
<app-processor
|
||||
@@ -70,7 +75,7 @@
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
}
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
|
||||
@@ -91,14 +91,17 @@ export class RouteComponent {
|
||||
});
|
||||
|
||||
if (this.index() !== undefined) {
|
||||
this.eventsService.getRouteEventsForIndex(this.index()!).pipe(
|
||||
tap((routeEvent)=>{
|
||||
this.indicatorColor.set(routeEvent.error ? 'red' : 'greenyellow');
|
||||
}),
|
||||
debounceTime(100)
|
||||
).subscribe((routeEvent) => {
|
||||
this.indicatorColor.set('gray')
|
||||
})
|
||||
this.eventsService
|
||||
.getRouteEventsForIndex(this.index()!)
|
||||
.pipe(
|
||||
tap((routeEvent) => {
|
||||
this.indicatorColor.set(routeEvent.error ? 'red' : 'greenyellow');
|
||||
}),
|
||||
debounceTime(100),
|
||||
)
|
||||
.subscribe((routeEvent) => {
|
||||
this.indicatorColor.set('gray');
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
@@ -115,7 +118,7 @@ export class RouteComponent {
|
||||
this.route.update((route) => {
|
||||
if (route) {
|
||||
const processors = route.processors || [];
|
||||
|
||||
|
||||
processors.push(processorTemplate);
|
||||
return {
|
||||
...route,
|
||||
|
||||
Reference in New Issue
Block a user