CST-13397 - fine tune UI

This commit is contained in:
FrancescoMolinaro
2024-01-26 16:19:10 +01:00
parent a27e55ec6b
commit 9b045070c8
3 changed files with 18 additions and 3 deletions

View File

@@ -37,7 +37,7 @@
<td> <td>
<div class="d-flex flex-column"> <div class="d-flex flex-column">
<button class="btn mb-2 btn-dark" (click)="openDetailModal(message)">{{ 'notify-message-result.detail' | translate }}</button> <button class="btn mb-2 btn-dark" (click)="openDetailModal(message)">{{ 'notify-message-result.detail' | translate }}</button>
<button *ngIf="message.queueStatusLabel !== reprocessStatus && (message.queueStatusLabel === failureStatus || message.queueStatusLabel === unmappedActionStatus)" <button *ngIf="message.queueStatusLabel !== reprocessStatus && validStatusesForReprocess.includes(message.queueStatusLabel)"
(click)="reprocessMessage(message)" (click)="reprocessMessage(message)"
class="btn btn-warning" class="btn btn-warning"
> >

View File

@@ -32,11 +32,18 @@ import { DatePipe } from '@angular/common';
export class AdminNotifySearchResultComponent extends TabulatableResultListElementsComponent<PaginatedList<AdminNotifySearchResult>, AdminNotifySearchResult> implements OnInit, OnDestroy{ export class AdminNotifySearchResultComponent extends TabulatableResultListElementsComponent<PaginatedList<AdminNotifySearchResult>, AdminNotifySearchResult> implements OnInit, OnDestroy{
public messagesSubject$: BehaviorSubject<AdminNotifyMessage[]> = new BehaviorSubject([]); public messagesSubject$: BehaviorSubject<AdminNotifyMessage[]> = new BehaviorSubject([]);
public reprocessStatus = 'QUEUE_STATUS_QUEUED_FOR_RETRY'; public reprocessStatus = 'QUEUE_STATUS_QUEUED_FOR_RETRY';
public failureStatus = 'QUEUE_STATUS_FAILED';
public unmappedActionStatus = 'QUEUE_STATUS_UNMAPPED_ACTION';
//we check on one type of config to render specific table headers //we check on one type of config to render specific table headers
public isInbound: boolean; public isInbound: boolean;
/**
* Statuses for which we display the reprocess button
*/
public validStatusesForReprocess = [
'QUEUE_STATUS_UNTRUSTED',
'QUEUE_STATUS_FAILED',
'QUEUE_STATUS_UNMAPPED_ACTION'
];
/** /**
* Array to track all subscriptions and unsubscribe them onDestroy * Array to track all subscriptions and unsubscribe them onDestroy

View File

@@ -3548,6 +3548,14 @@
"search.filters.applied.f.relateditem": "Related items", "search.filters.applied.f.relateditem": "Related items",
"search.filters.applied.f.ldn_service": "LDN Service",
"search.filters.applied.f.notifyReview": "Notify Review",
"search.filters.applied.f.notifyEndorsement": "Notify Endorsement",
"search.filters.applied.f.notifyRelation": "Notify Relation",
"admin.notify.dashboard.outbound": "Outbound messages", "admin.notify.dashboard.outbound": "Outbound messages",
"admin.notify.dashboard.outbound-logs": "Logs/Outbound", "admin.notify.dashboard.outbound-logs": "Logs/Outbound",