Skip to content

Commit cea9adb

Browse files
[DURACOM-317] improve labels
1 parent f919f1d commit cea9adb

File tree

4 files changed

+5
-10
lines changed

4 files changed

+5
-10
lines changed

src/app/audit-page/audit-table/audit-table.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@
7979
@if (audit.otherAuditObject; as dso) {
8080
{{ getDsoName(dso) }} <em>({{ dso.type }})</em>
8181
} @else {
82-
{{ dataNotAvailable }}
82+
{{ 'audit.data.self' | translate}}
8383
}
8484
</span>
8585
</td>

src/app/audit-page/audit-table/audit-table.component.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import {
1010
Input,
1111
} from '@angular/core';
1212
import { RouterLink } from '@angular/router';
13-
import { AUDIT_PERSON_NOT_AVAILABLE } from '@dspace/core/data/audit-data.service';
1413
import { DSpaceObjectDataService } from '@dspace/core/data/dspace-object-data.service';
1514
import { PaginationComponentOptions } from '@dspace/core/pagination/pagination-component-options.model';
1615
import { getDSORoute } from '@dspace/core/router/utils/dso-route.utils';
@@ -77,7 +76,6 @@ export class AuditTableComponent {
7776
*/
7877
readonly auditPath = 'auditlogs';
7978

80-
protected readonly dataNotAvailable = AUDIT_PERSON_NOT_AVAILABLE;
8179

8280
/**
8381
* Date format to use for start and end time of audits

src/app/audit-page/object-audit-overview/object-audit-logs.component.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,7 @@ import {
1212
Router,
1313
RouterLink,
1414
} from '@angular/router';
15-
import {
16-
AUDIT_PERSON_NOT_AVAILABLE,
17-
AuditDataService,
18-
} from '@dspace/core/data/audit-data.service';
15+
import { AuditDataService } from '@dspace/core/data/audit-data.service';
1916
import { PaginationComponentOptions } from '@dspace/core/pagination/pagination-component-options.model';
2017
import { getDSORoute } from '@dspace/core/router/utils/dso-route.utils';
2118
import { TranslateModule } from '@ngx-translate/core';
@@ -104,8 +101,6 @@ export class ObjectAuditLogsComponent implements OnInit {
104101

105102
objectRoute: string;
106103

107-
dataNotAvailable = AUDIT_PERSON_NOT_AVAILABLE;
108-
109104
constructor(protected route: ActivatedRoute,
110105
protected router: Router,
111106
protected auditService: AuditDataService,

src/assets/i18n/en.json5

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -901,6 +901,8 @@
901901

902902
"audit.data.not-found": "No audits found.",
903903

904+
"audit.data.self": "self",
905+
904906
"audit.detail.metadata.field": "Metadata field:",
905907

906908
"audit.detail.metadata.value": "Value:",
@@ -931,7 +933,7 @@
931933

932934
"audit.overview.table.eperson": "EPerson",
933935

934-
"audit.overview.table.other": "Other Object",
936+
"audit.overview.table.other": "Object",
935937

936938
"audit.overview.table.timestamp": "Time (UTC)",
937939

0 commit comments

Comments
 (0)