Improve notifications
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<div class="library-header">
|
||||
<div class="library-header-dial">
|
||||
<h3 class="library-name">{{ (entityType$ | async) }}: {{ (entity$ | async)?.name }}</h3>
|
||||
<h4 class="library-name">{{ (entityType$ | async) }}: {{ (entity$ | async)?.name }}</h4>
|
||||
<p-speedDial
|
||||
[model]="speedDialItems!"
|
||||
direction="right"
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
.library-header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
padding: 15px 15px 10px 17px;
|
||||
padding: 8px 16px 8px 16px;
|
||||
background-color: var(--surface-card);
|
||||
border-radius: 12px 12px 0 0;
|
||||
margin-bottom: 15px;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.library-header-dial {
|
||||
|
||||
@@ -21,13 +21,14 @@
|
||||
(click)="toggleEventDisplay()"
|
||||
(mouseenter)="onMouseEnter()"
|
||||
(mouseleave)="onMouseLeave()"
|
||||
[class.pi-spin]="eventHighlight"
|
||||
[class.pulsating]="eventHighlight"
|
||||
[class.highlight]="eventHighlight">
|
||||
<i class="pi pi-sync"></i>
|
||||
<i class="pi pi-wave-pulse"></i>
|
||||
</button>
|
||||
|
||||
<div *ngIf="showEvents" class="live-event-container" (mouseleave)="onMouseLeave()">
|
||||
{{ latestEvent }}
|
||||
<p *ngIf="latestEvent.timestamp">{{ latestEvent.timestamp }}</p>
|
||||
<p>{{ latestEvent.message }}</p>
|
||||
</div>
|
||||
<button class="p-link layout-menu-button layout-topbar-button" (click)="openLibraryCreatorDialog()" pTooltip="Create New Library" tooltipPosition="top">
|
||||
<i class="pi pi-plus-circle"></i>
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
}
|
||||
|
||||
.highlight {
|
||||
color: var(--yellow-400) !important;
|
||||
color: red !important;
|
||||
}
|
||||
|
||||
@keyframes pulsate {
|
||||
|
||||
@@ -12,6 +12,7 @@ import {SearchComponent} from '../search/search.component';
|
||||
import {FileUploadComponent} from '../file-upload/file-upload.component';
|
||||
import {NgClass, NgIf} from '@angular/common';
|
||||
import {EventService} from '../../service/event.service';
|
||||
import {LogNotification} from '../../model/log-notification.model';
|
||||
|
||||
@Component({
|
||||
selector: 'app-topbar',
|
||||
@@ -31,7 +32,7 @@ export class AppTopBarComponent implements OnDestroy {
|
||||
items!: MenuItem[];
|
||||
ref: DynamicDialogRef | undefined;
|
||||
|
||||
latestEvent: string = 'No recent events...';
|
||||
latestEvent: LogNotification = { message: 'No recent notifications...' };
|
||||
eventHighlight: boolean = false;
|
||||
showEvents: boolean = false;
|
||||
eventTimeout: any;
|
||||
|
||||
Reference in New Issue
Block a user