Merged in CST-13397-ui-fine-tuning-part-2 (pull request #1282)

CST-13397 - fine tune UI

Approved-by: Stefano Maffei
This commit is contained in:
Francesco Molinaro
2024-01-26 15:32:17 +00:00
committed by Stefano Maffei
3 changed files with 18 additions and 3 deletions

View File

@@ -37,7 +37,7 @@
<td>
<div class="d-flex flex-column">
<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)"
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{
public messagesSubject$: BehaviorSubject<AdminNotifyMessage[]> = new BehaviorSubject([]);
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
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

View File

@@ -3548,6 +3548,14 @@
"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-logs": "Logs/Outbound",