[CST-12044] refactor: code

This commit is contained in:
Vlad Nouski
2024-02-07 08:31:06 +01:00
parent 18e62f4706
commit c596b6c7ec
2 changed files with 6 additions and 2 deletions

View File

@@ -11,8 +11,8 @@
[checked]="isPrimary"
(change)="togglePrimaryBitstream($event)">
<label class="custom-control-label" for="primaryBitstream{{fileIndex}}">
<span class="sr-only" aria-hidden="true" *ngIf="!isPrimary">Make {{fileName}} the primary bitstream</span>
<span class="sr-only" aria-hidden="true" *ngIf="isPrimary">Remove {{fileName}} as the primary bitstream</span>
<span class="sr-only" aria-hidden="true" *ngIf="!isPrimary">{{'submission.sections.upload.primary.make' | translate:{ fileName: fileName } }}</span>
<span class="sr-only" aria-hidden="true" *ngIf="isPrimary">{{'submission.sections.upload.primary.remove' | translate:{ fileName: fileName } }}</span>
</label>
</div>
</div>

View File

@@ -4434,6 +4434,10 @@
"submission.sections.toggle.aria.close": "Collapse {{sectionHeader}} section",
"submission.sections.upload.primary.make": "Make {{fileName}} the primary bitstream",
"submission.sections.upload.primary.remove": "Remove {{fileName}} as the primary bitstream",
"submission.sections.upload.delete.confirm.cancel": "Cancel",
"submission.sections.upload.delete.confirm.info": "This operation can't be undone. Are you sure?",