mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 01:54:15 +00:00
CST-13397 - fine tune UI
This commit is contained in:
@@ -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"
|
||||
>
|
||||
|
@@ -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
|
||||
|
@@ -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",
|
||||
|
Reference in New Issue
Block a user